OnPlayerRequestClass Problem
#1

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

Reply
#2

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

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
Reply
#4

EDIT: Your callback is wrong...

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

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

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

problem solved

#undef MAX_PLAYERS
#define MAX_PLAYERS 500

origin was
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)