28.01.2012, 10:31
Try this then:
pawn Код:
//replace your current bools
new bool:IsPlayerSpectating[MAX_PLAYERS] = false;
new bool:RespawnDisabled = true;
pawn Код:
if(bool:RespawnDisabled == true)
{
new str[128];
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, killerid);
IsPlayerSpectating[playerid] = true; //this line could cause the error
//OR\\
bool:IsPlayerSpectating[playerid] = true; //dont use both lines, just comment one
format(str, 128, "~n~~n~~n~~n~~n~~n~~n~~n~~g~Spectating: ~w~%s(ID:%d)", GetName(SpectatedPlayer[playerid]), SpectatedPlayer[playerid]);
GameTextForPlayer(playerid,str,10000,3);
}