Cannot spawn player
#3

In case PlayerInfo[extraid][pRegister] is 0, it will return a value and the rest of the code (which spawns the players) won't be executed.
pawn Код:
if(PlayerInfo[extraid][pRegister] == 0)
{
    SetPlayerPos(extraid,1716.1129,-1880.0715,-10.0);
    SetPlayerCameraPos(extraid,1755.0413,-1824.8710,20.2100);
    SetPlayerCameraLookAt(extraid,1716.1129,-1880.0715,22.0264);
    ShowPlayerDialog(extraid, TUT, DIALOG_STYLE_LIST, "Gender Your char ?", "Male\nFemale", "Choose", "Exit");
    return 1;
}
In fact, you don't even need that if statement because if the player gets the dialog to login, that means that he's already registered.
Reply


Messages In This Thread
Cannot spawn player - by qmnty - 17.06.2014, 10:32
Re: Cannot spawn player - by Pillhead2007 - 18.06.2014, 09:52
Re: Cannot spawn player - by Konstantinos - 18.06.2014, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)