OnPlayerSpawn doesn't get called (FIXED)
#1

Hi!

I'm having this problem when I've logged in to my server. All the stats load perfectly fine and I spawn at my old location but the callback OnPlayerSpawn doesn't get called. I have this code after the code has been loaded and all of that is executed.

PHP код:
SetSpawnInfo(extraid0playerVariables[extraid][pSkin], playerVariables[extraid][pPos][0], playerVariables[extraid][pPos][1], playerVariables[extraid][pPos][2], 0000000);
SpawnPlayer(extraid);
                        
SetPlayerVirtualWorld(extraidplayerVariables[extraid][pVirtualWorld]);
SetPlayerInterior(extraidplayerVariables[extraid][pInterior]); 
I've debugged the script (both the loading and the whole OnPlayerSpawn) by sending client messages (I often do that haha) and what I've come up with is that OnPlayerSpawn isn't getting called.

What's the cause of this and how can I fix it?


EDIT;

I'm using these includes in case anyone wonders.
Quote:

#include <a_samp>
#define FIXES_Single 1
#include <fixes>
#include <a_mysql>
#include <foreach>
#include <streamer>
#include <zcmd>
#include <sscanf2>
#include <strlib>
#include <a_zones>

Reply


Messages In This Thread
OnPlayerSpawn doesn't get called (FIXED) - by Flyfishes - 27.05.2013, 15:32
Re: OnPlayerSpawn doesn't get called - by Scenario - 27.05.2013, 15:33
Re: OnPlayerSpawn doesn't get called - by Flyfishes - 27.05.2013, 15:34
Re: OnPlayerSpawn doesn't get called - by Scenario - 27.05.2013, 15:35
Re: OnPlayerSpawn doesn't get called - by Flyfishes - 27.05.2013, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)