Rdogg Posted February 21, 2009 Posted February 21, 2009 could u please help me? i installed car mod and on tune.php on line ten this is the code $cost['acc']=$r['carACC']*power($r['cpcACCLV']+1,4)*($r['cpcACCLV']*$r['carACC']*10); and i get this error. Fatal error: Call to undefined function power() in /home/rdogg/public_html/tune.php on line 1 Quote
John99 Posted February 21, 2009 Posted February 21, 2009 Re: [need help]car mod Neva used the car mod on the mod does it say too add somethink to global_funcs.php ? Quote
John99 Posted February 21, 2009 Posted February 21, 2009 Re: [need help]car mod Says line 1 show line 1, 2, 3 Quote
Rdogg Posted February 21, 2009 Author Posted February 21, 2009 Re: [need help]car mod line 1 to 15 <?php include "globals.php"; global $h; print "<h3>Tuning Shop</h3><hr /> > [url='garage.php']Back To Garage[/url]<hr />"; if(!$_GET['id']) { die("Invalid Usage"); } $q=$db->query("SELECT cp.*,ct.* FROM cars_playercars cp LEFT JOIN cars_types ct ON ct.carID=cp.cpcCAR WHERE cp.cpcID={$_GET['id']} AND cp.cpcPLAYER=$userid"); if($db->num_rows($q) == 0) { die("Invalid Car"); } $r=$db->fetch_row($q); $cost['acc']=$r['carACC']*power($r['cpcACCLV']+1,4)*($r['cpcACCLV']*$r['carACC']*10); $cost['han']=$r['carHAN']*power($r['cpcHANLV']+1,4)*($r['cpcHANLV']*$r['carHAN']*10); $cost['spd']=$r['carSPD']*power($r['cpcSPDLV']+1,4)*($r['cpcSPDLV']*$r['carSPD']*10); $cost['shd']=$r['carSHD']*power($r['cpcSHDLV']+1,4)*($r['cpcSHDLV']*$r['carSHD']*10); if($_GET['buy']) { Quote
John99 Posted February 21, 2009 Posted February 21, 2009 Re: [need help]car mod Search in all of the car files for the function called power? Quote
Rdogg Posted February 21, 2009 Author Posted February 21, 2009 Re: [need help]car mod no other files have it Quote
John99 Posted February 21, 2009 Posted February 21, 2009 Re: [need help]car mod then your missing power function Quote
Rdogg Posted February 21, 2009 Author Posted February 21, 2009 Re: [need help]car mod could u help me add it? :wink: Quote
John99 Posted February 21, 2009 Posted February 21, 2009 Re: [need help]car mod There Told you on msn damn you are soooo anoying Quote
Lithium Posted February 21, 2009 Posted February 21, 2009 Re: [need help]car mod Whoever converted that mod from v1 to v2 simply deleted the power() function! Quote
John99 Posted February 21, 2009 Posted February 21, 2009 Re: [need help]car mod Dont even have the mod .. dont want it too Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.