13.03.2014, 05:26
why is my speedo erroring like this
RP.pwn(123686) : error 029: invalid expression, assumed zero
RP.pwn(123686) : error 017: undefined symbol "SpeedoCheck_yT@"
RP.pwn(123686) : warning 215: expression has no effect
RP.pwn(123686) : error 017: undefined symbol "SpeedoCheck@yT_"
RP.pwn(123686) : fatal error 107: too many error messages on one line
Code is
RP.pwn(123686) : error 029: invalid expression, assumed zero
RP.pwn(123686) : error 017: undefined symbol "SpeedoCheck_yT@"
RP.pwn(123686) : warning 215: expression has no effect
RP.pwn(123686) : error 017: undefined symbol "SpeedoCheck@yT_"
RP.pwn(123686) : fatal error 107: too many error messages on one line
Code is
Код:
// Timer Name: SpeedoCheck() // TickRate: 1 second. ptask SpeedoCheck[1000](playerid) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && PlayerInfo[playerid][pSpeedoOn] == 1) { new veh = GetPlayerVehicleID(playerid); new Float:Speed = GetVehicleSpeed(veh, 0); new string[128]; if(!IsABicycle(veh)) { format(string,sizeof(string),"~b~SPEED:~n~~w~%d MPH~n~~g~GAS: ~w~%.2f",floatround(Speed/1.609),Gas[veh]); PlayerTextDrawSetString(playerid,SpeedoText0,string); } } return 1; }