04.06.2014, 18:14
Im not sure whats going on here. Can anyone fix it?
ERROR CODE
Where the error is:
Full Code
ERROR CODE
Код:
warning 202: number of arguments does not match definition ./includes/functions.pwn(21321) : warning 202: number of arguments does not match definition
Код:
format(string, sizeof(string), "Spectating %s(%d): HP: %d Armour: %d", GetPlayerNameEx(Spectate[playerid]), Spectate[playerid], GetPlayerHealth(playerid), GetPlayerArmour(playerid));
Код:
forward SpecUpdate(playerid);
public SpecUpdate(playerid)
{
if(Spectating[playerid] > 0 && Spectate[playerid] != INVALID_PLAYER_ID) {
for(new i = 0; i < 2; i++) {
TogglePlayerSpectating(playerid, true);
PlayerSpectatePlayer( playerid, Spectate[playerid] );
SetPlayerInterior( playerid, GetPlayerInterior( Spectate[playerid] ) );
SetPlayerVirtualWorld( playerid, GetPlayerVirtualWorld( Spectate[playerid] ) );
new string[128];
format(string, sizeof(string), "Spectating %s(%d): HP: %d Armour: %d", GetPlayerNameEx(Spectate[playerid]), Spectate[playerid], GetPlayerHealth(playerid), GetPlayerArmour(playerid));
GameTextForPlayer(playerid, string, 5000, 2);
}
}
return 1;
}


