[Question] It's will work ?
#1

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;
}
Reply
#2

IDK man u tell me?....Scripters usually test there s**t..
Reply
#3

tag mistmatch on this line:
return Speed;
Reply
#4

return speed? is that a new call? try return 1; lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)