OnPlayerRequestClass - Teams
#1

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetupPlayerForClassSelection(playerid)
   
    if(classid == 0 || classid == 1 || classid == 2 || classid == 3)
    {
        gTeam[playerid] = TEAM_1;
        GameTextForPlayer(playerid, "~b~Cops", 1000,15);
    }
    else if(classid == 4 || classid == 5 || classid == 6 || classid == 7)
    {
        gTeam[playerid] = TEAM_2;
        GameTextForPlayer(playerid, "~w~Civllian", 1000,16);
    }
And I keep getting this error
pawn Код:
C:\Users\MarioG\Desktop\SASP\gamemodes\SASP.pwn(1035) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Line 1035:
pawn Код:
if(classid == 0 || classid == 1 || classid == 2 || classid == 3)
Reply


Messages In This Thread
OnPlayerRequestClass - Teams - by G*Mafia - 27.04.2011, 06:03
Re: OnPlayerRequestClass - Teams - by elite - 27.04.2011, 06:08
Re: OnPlayerRequestClass - Teams - by Steven82 - 27.04.2011, 06:11
Re: OnPlayerRequestClass - Teams - by elite - 27.04.2011, 06:11
Re: OnPlayerRequestClass - Teams - by G*Mafia - 27.04.2011, 06:13

Forum Jump:


Users browsing this thread: 2 Guest(s)