OnPlayerSpawn Compiling error
#2

It's just OnPlayerSpawn(playerid), there is no classid parameter.

for them you should do something like

pawn Код:
new Class[MAX_PLAYERS];

public OnPlayerRequestClass(playerid, classid)
{
    // Your other code
    Class[playerid] = classid;
}

public OnPlayerSpawn(playerid)
{
    if(Class[playerid] == 0)
    {
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,2004.93,1544.25,13.59);
        SetPlayerFacingAngle(playerid,270.0);
        SetPlayerToTeamColour(playerid);
        SetPlayerTeamFromClass(playerid, classid);
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerSpawn Compiling error - by _Khaled_ - 12.07.2012, 01:10
Re: OnPlayerSpawn Compiling error - by CmZxC - 12.07.2012, 01:11
Re: OnPlayerSpawn Compiling error - by _Khaled_ - 12.07.2012, 01:25
Re: OnPlayerSpawn Compiling error - by CmZxC - 12.07.2012, 01:31
Re: OnPlayerSpawn Compiling error - by _Khaled_ - 12.07.2012, 01:37
Re: OnPlayerSpawn Compiling error - by _Khaled_ - 12.07.2012, 01:44
Re: OnPlayerSpawn Compiling error - by Tuntun - 12.07.2012, 01:47
Re: OnPlayerSpawn Compiling error - by _Khaled_ - 12.07.2012, 01:49
Re: OnPlayerSpawn Compiling error - by Tuntun - 12.07.2012, 01:51
Re: OnPlayerSpawn Compiling error - by _Khaled_ - 12.07.2012, 01:56

Forum Jump:


Users browsing this thread: 4 Guest(s)