20.02.2009, 10:27
I think its very good to show other ways..
But i get..
hmm..?
But i get..
Quote:
C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\Coding\PAWNO\pawn o\gamemode.pwn(127) : error 029: invalid expression, assumed zero C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\Coding\PAWNO\pawn o\gamemode.pwn(12 : error 001: expected token: ";", but found "case" C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\Coding\PAWNO\pawn o\gamemode.pwn(12 : error 029: invalid expression, assumed zero C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\Coding\PAWNO\pawn o\gamemode.pwn(129) : error 001: expected token: ";", but found "case" C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\Coding\PAWNO\pawn o\gamemode.pwn(129) : error 029: invalid expression, assumed zero C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\Coding\PAWNO\pawn o\gamemode.pwn(130) : error 001: expected token: ";", but found "case" |
Код:
SetPlayerTeamFromClass(playerid, classid) { switch(classid) { case 0..4: gTeam[playerid] = TEAM_Usa; case 5..9: gTeam[playerid] = TEAM_Iraq; case 10..14: gTeam[playerid] = TEAM_Nazi; case 15..19: gTeam[playerid] = TEAM_Alqaida; } }