18.03.2013, 14:34
I get this error code's when i'm trying to create team colors:
and this are the lines:
Thanks for the help!
Код:
C:\Users\Lorenzo\Desktop\DM server\gamemodes\LSGTDM.pwn(132) : error 002: only a single statement (or expression) can follow each "case" C:\Users\Lorenzo\Desktop\DM server\gamemodes\LSGTDM.pwn(132 -- 133) : error 028: invalid subscript (not an array or too many subscripts): "playerid" C:\Users\Lorenzo\Desktop\DM server\gamemodes\LSGTDM.pwn(132 -- 134) : error 001: expected token: "}", but found "if" C:\Users\Lorenzo\Desktop\DM server\gamemodes\LSGTDM.pwn(132 -- 134) : fatal error 107: too many error messages on one line
Код:
SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_CRAZY); { SetPlayerColor(playerid, TEAM_CRAZY_C); } else if (gTeam[playerid] == TEAM_BEAST); { SetPlayerColor(playerid, TEAM_BEAST_C); } return 1; }