I'm getting errors in both cases.
#8

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);
}
Reply


Messages In This Thread
I'm getting errors in both cases. - by nuriel8833 - 28.01.2012, 09:52
Re: I'm getting errors in both cases. - by fiki574 - 28.01.2012, 09:56
Re: I'm getting errors in both cases. - by nuriel8833 - 28.01.2012, 10:05
Re: I'm getting errors in both cases. - by fiki574 - 28.01.2012, 10:12
Re: I'm getting errors in both cases. - by nuriel8833 - 28.01.2012, 10:15
Re: I'm getting errors in both cases. - by fiki574 - 28.01.2012, 10:24
Re: I'm getting errors in both cases. - by nuriel8833 - 28.01.2012, 10:25
Re: I'm getting errors in both cases. - by fiki574 - 28.01.2012, 10:31
Respuesta: I'm getting errors in both cases. - by kirk - 28.01.2012, 10:32
Re: Respuesta: I'm getting errors in both cases. - by nuriel8833 - 28.01.2012, 10:48

Forum Jump:


Users browsing this thread: 1 Guest(s)