27.05.2013, 15:32
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.
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.
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(extraid, 0, playerVariables[extraid][pSkin], playerVariables[extraid][pPos][0], playerVariables[extraid][pPos][1], playerVariables[extraid][pPos][2], 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(extraid);
SetPlayerVirtualWorld(extraid, playerVariables[extraid][pVirtualWorld]);
SetPlayerInterior(extraid, playerVariables[extraid][pInterior]);
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> |