SA-MP Forums Archive
SetPlayerTeamFromClass - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPlayerTeamFromClass (/showthread.php?tid=300325)



SetPlayerTeamFromClass - Black Axe - 29.11.2011

Well , I Was doing this :

PHP код:
public SetPlayerTeamFromClass(playeridclassid)
{
    if(
classid == 0)
    {
    
gTeam[playerid] = TEAM_Mafia1;
    return 
1;
    } 
Now..It give me this Error..

PHP код:
E:\GTB640~1.ASA\SERVER~1\MAFIAW~1\GAMEMO~1\MW-TDM.pwn(449) : error 030compound statement not closed at the end of file (started at line 404)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Any Help would be Appreciated.


Re: SetPlayerTeamFromClass - MP2 - 29.11.2011

pawn Код:
stock SetPlayerTeamFromClass(playerid, classid)
{
    switch(classid)
    {
        case 0: gTeam[playerid] = TEAM_Mafia1;
    }
    return 1;
}



Re: SetPlayerTeamFromClass - Black Axe - 29.11.2011

Thank you - Worked (Repped+ [Too Bad my Reputation Points don't count ]