I'm getting errors in both cases.
#1

Hello
I've tried creating a script in 2 diffrent ways,in both ways I'm getting errors.
Way #1:
pawn Код:
if(RespawnDisabled = true)
    {
        new str[128];
        TogglePlayerSpectating(playerid, 1);
        PlayerSpectatePlayer(playerid, killerid);
        IsPlayerSpectating[playerid] = true;
        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);
  }
Errors (all about the 'if' line):
pawn Код:
error 076: syntax error in the expression, or invalid function call
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Way #2
pawn Код:
if(RespawnDisabled == true)
    {
        new str[128];
        TogglePlayerSpectating(playerid, 1);
        PlayerSpectatePlayer(playerid, killerid);
        IsPlayerSpectating[playerid] = true;
        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);
  }
Error (About the 'if' line too):
pawn Код:
error 076: syntax error in the expression, or invalid function call
Help please?
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)