Stock Help
#1

Here's the code:

Код:
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;
}
Here's the errors:

Код:
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
Reply


Messages In This Thread
Stock Help - by MD5 - 04.10.2015, 17:00
Re: Stock Help - by ATGOggy - 04.10.2015, 17:02
Re: Stock Help - by Kevln - 04.10.2015, 17:14
Re: Stock Help - by ATGOggy - 04.10.2015, 17:56
Re: Stock Help - by d1git - 04.10.2015, 18:01
Re: Stock Help - by MD5 - 04.10.2015, 18:17
Re: Stock Help - by ATGOggy - 04.10.2015, 18:47
Re: Stock Help - by MD5 - 04.10.2015, 18:50
Re: Stock Help - by AbyssMorgan - 04.10.2015, 18:55
Re: Stock Help - by MD5 - 04.10.2015, 19:37

Forum Jump:


Users browsing this thread: 3 Guest(s)