OnPlayerRequestClass Error
#1

I get an error that says: error 010: invalid function or declaration





Код:
public OnPlayerRequestClass(playerid, classid)
if(classid == 0)
    {
        gTeam[playerid] = TEAM_rollin60;
        GameTextForPlayer(playerid,"~w~Ballas",3000,5);
        SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779);
        SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); 
        SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
        SetPlayerFacingAngle(playerid,122.4500);
        SetPlayerColor(playerid,0xA000FFFF);
    }
else if(classid == 1)
    {
        gTeam[playerid] = TEAM_rollin60;
        GameTextForPlayer(playerid,"~w~Grove Street Famlilys",3000,5);
        SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
        SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
        SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
        SetPlayerFacingAngle(playerid,252.4717);
        SetPlayerColor(playerid,0x55FF00FF);

        }
        return 1;
        }
Reply


Messages In This Thread
OnPlayerRequestClass Error - by skaapje7 - 21.09.2013, 11:23
Re: OnPlayerRequestClass Error - by Konstantinos - 21.09.2013, 11:23
Re: OnPlayerRequestClass Error - by DanishHaq - 21.09.2013, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)