call order of callback
#1

Hi for better understanding i want to know what is the call order of public callbavk when a player connect to the server.
For exemple --> OnPlayerConnect ->OnPlayerRequestClass...
I want to know the exact order.

I have another question: i know that pawn have no heap all the data allocated onto the stack so how can array be returned from function, it would point to an invalid stack location
Reply
#2

It's basically upto OnPlayerSpawn.

OnplayerConnect > OnlayerRequestClass > OnPlayerSpawn.
Reply
#3

ok thanks, i tried to spawn the player in the callback OnPlayerSpawnClass using Spawn(playerid); but it dosen't work, nothing happen until the player click on spawn button.

what exactly i want to do is to spawn directly the player after connection.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)