[Question] It's will work ? - 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: [Question] It's will work ? (
/showthread.php?tid=187323)
[Question] It's will work ? -
Maor1122 - 02.11.2010
I made a stock which his action it's to get the vehicle speed .
its will work ? there is the code:
Код:
stock GetVehicleSpeed(vehicleid)
{
if(vehicleid != INVALID_VEHICLE_ID)
{
new Float:X,Float:Y,Float:Z,Float:Speed;
GetVehicleVelocity(vehicleid, X, Y, Z);
Speed = floatsqroot(X*X + Y*Y + Z*Z)*200;
return Speed;
}
return INVALID_VEHICLE_ID;
}
Re: [Question] It's will work ? -
<Weponz> - 02.11.2010
IDK man u tell me?....Scripters usually test there s**t..
Re: [Question] It's will work ? -
Maor1122 - 02.11.2010
tag mistmatch on this line:
return Speed;
Re: [Question] It's will work ? -
OldDirtyBastard - 02.11.2010
return speed? is that a new call? try return 1; lol