04.10.2015, 17:00
Here's the code:
Here's the errors:
Код:
stock SetPlayerTeamFromClass(playerid, classid) { new pName[MAX_PLAYER_NAME]; if(classid >= 0 && classid <= 2) pName[playerid][gTeam] = TEAM_NANANG; else if(classid >= 3 && classid <= 5) pName[playerid][gTeam] = TEAM_FIERRO; else if(classid >= 6 && classid <= 8) pName[playerid][gTeam] = TEAM_TRIAD; else if(classid >= 9 && classid <= 11) pName[playerid][gTeam] = TEAM_BIKER; else if(classid >= 12 && classid <= 14) pName[playerid][gTeam] = TEAM_MAFIA; else if(classid >= 14 && classid <= 17) pName[playerid][gTeam] = TEAM_ARMY; }
Код:
C:\Users\\Desktop\GAMEMODE\gamemodes\lsgw.pwn(653) : warning 215: expression has no effect C:\Users\\Desktop\GAMEMODE\gamemodes\lsgw.pwn(653) : error 001: expected token: ";", but found "[" C:\Users\\Desktop\GAMEMODE\gamemodes\lsgw.pwn(653) : error 029: invalid expression, assumed zero C:\Users\\Desktop\GAMEMODE\gamemodes\lsgw.pwn(653) : warning 215: expression has no effect C:\Users\\Desktop\GAMEMODE\gamemodes\lsgw.pwn(653) : error 001: expected token: ";", but found "]" C:\Users\\Desktop\GAMEMODE\gamemodes\lsgw.pwn(653) : fatal error 107: too many error messages on one line