SA-MP Forums Archive
GetVehicleVelocity error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetVehicleVelocity error (/showthread.php?tid=217586)



GetVehicleVelocity error - Sascha - 28.01.2011

Hi..
I got this error:
Код:
error 001: expected token: ",", but found ";"
for this code:
pawn Код:
new Float:x, Float:y, Float:z, Float:rtn;
GetVehicleVelocity(vehicleid, x, y, z);       //ERROR LINE
rtn = floatsqroot(((x * x) + (y * y));
I don't see the mistake -.-


Re: GetVehicleVelocity error - dice7 - 28.01.2011

rtn = floatsqroot((x * x) + (y * y));


Re: GetVehicleVelocity error - Sascha - 28.01.2011

oh... lol I haven't seen the (
ty


Re: GetVehicleVelocity error - Steven Paul - 28.01.2011

fix code

pawn Код:
new Float:x, Float:y, Float:z, Float:rtn;
GetVehicleVelocity(vehicleid, x, y, z);       //ERROR LINE
rtn = floatsqroot((x * x) + (y * y));