SA-MP Forums Archive
OnPlayerRequestClass Problem - 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: OnPlayerRequestClass Problem (/showthread.php?tid=550875)



OnPlayerRequestClass Problem - daggerkinq - 15.12.2014

hello, my problem is that the server, when you enter the character selection screen doesn't seem to wonder how I can show

Код:
public OnPlayerRequestClass(playerid)
{
APlayerData[playerid][CurrentHouse] = 0;
SetPlayerTime(playerid, 00,00);
SetPlayerPos(playerid,1521.3456,-1459.7542,63.9923);
SetPlayerCameraPos(playerid,1521.367,-1449.333,65.334);
SetPlayerCameraLookAt(playerid,1521.345,-1496.754,65.992);
SetPlayerFacingAngle(playerid,359.3236);
return 1;
}
Only when I



Later entrants




Re: OnPlayerRequestClass Problem - Threshold - 15.12.2014

pawn Код:
public OnPlayerConnect(playerid)
{
    //Do everything here... then at the end...
    OnPlayerRequestClass(playerid, 0);
    return 1;
}



Re: OnPlayerRequestClass Problem - daggerkinq - 15.12.2014

Quote:
Originally Posted by Threshold
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    //Do everything here... then at the end...
    OnPlayerRequestClass(playerid, 0);
    return 1;
}
warning 202: number of arguments does not match definition

-

the problem continues


Re: OnPlayerRequestClass Problem - Threshold - 15.12.2014

EDIT: Your callback is wrong...

It should be:
pawn Код:
public OnPlayerRequestClass(playerid, classid)



Re: OnPlayerRequestClass Problem - daggerkinq - 15.12.2014

Quote:
Originally Posted by Threshold
Посмотреть сообщение
EDIT: Your callback is wrong...

It should be:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
the problem is the same


Re: OnPlayerRequestClass Problem - daggerkinq - 15.12.2014

problem solved

#undef MAX_PLAYERS
#define MAX_PLAYERS 500

origin was