28.01.2012, 09:52
Hello
I've tried creating a script in 2 diffrent ways,in both ways I'm getting errors.
Way #1:
Errors (all about the 'if' line):
Way #2
Error (About the 'if' line too):
Help please?
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);
}
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
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);
}
pawn Код:
error 076: syntax error in the expression, or invalid function call