25.11.2012, 08:27
(
Последний раз редактировалось leetboi; 25.11.2012 в 08:45.
Причина: fixed
)
Hi all i have this error : error 017: undefined symbol "NUM2"
So i want to add for the vehicle speedboost that its number 2 and i get this error :
anyone can help me?
EDIT : My friend told me.
So i want to add for the vehicle speedboost that its number 2 and i get this error :
pawn Код:
else if(newkeys & NUM2)
{
new vehicleid = GetPlayerVehicleID(playerid);
new Float:angle;
GetVehicleZAngle(vehicleid, angle);
new Float:velox, Float:veloy, Float:veloz;
GetVehicleVelocity(vehicleid, velox, veloy, veloz);
velox += floatsin(-angle, degrees);
veloy += floatcos(-angle, degrees);
SetVehicleVelocity(vehicleid, velox, veloy, veloz);
}
}
}
return 1;
}
EDIT : My friend told me.