26.11.2012, 02:41
Changed it to:
Still giving me the same error, and i noticed there are two other warnings about that code:
Oh and btw, the error is for:
TextDrawShowForPlayer(playerid, string);
Код:
new string[128]; new Float:vhealth = GetVehicleHealth(vehicleid); new Float:phealth = GetPlayerHealth(playerid); if(newstate == PLAYER_STATE_DRIVER) { format(string,sizeof(string), "Health: %f Vehicle health: %f", phealth, vhealth); } else { format(string,sizeof(string), "Health: %f", phealth); } TextDrawShowForPlayer(playerid, string);
Код:
C:\Users\9903286\Desktop\Server\gamemodes\CNR.pwn(5017) : warning 202: number of arguments does not match definition C:\Users\9903286\Desktop\Server\gamemodes\CNR.pwn(5018) : warning 202: number of arguments does not match definition C:\Users\9903286\Desktop\Server\gamemodes\CNR.pwn(5024) : error 035: argument type mismatch (argument 2)
TextDrawShowForPlayer(playerid, string);