Jump to content
MakeWebGames

Recommended Posts

Posted

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
Posted

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'])
{

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...