14.02.2011, 20:07
I'm always getting this error while compiling:
in this scipt
I'm using that script for my trunk system, but now, it failed...
Help, please!
Код:
error 001: expected token: "-identifier-", but found "-rational value-"
Код:
stock CheckPlayerDistanceToVehicle(Float:radi, playerid, vehicleid) { if(IsPlayerConnected(playerid)) { new Float:PX,Float:PY,Float:PZ,Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,PX,PY,PZ); GetVehiclePos(vehicleid, X,Y,Z); new Float:Distance = (X-PX)*(X-PX)+(Y-PY)*(Y-PY)+(Z-PZ)*(Z-PZ); if(Distance <= radi*radi) { return 1; } } return 0; }
Help, please!