onplayerspawn & onplayerdeath callbacks
#1

When i do something like that:
Код:
OnPlayerSpawn(playerid);
or
Код:
SpawnPlayer(playerid);
i dont know why but OnPlayerDeath callback is called. Im not a PAWN noob, i checked everything, i never call that callback, i checked it when its called by print(..); and it seems that its called right after OnPlayerSpawn has finished.
Has SA-MP got some function bugged which i dont know about? Please reply


//edit: when i set player health to 0, the hp bar is 0 but you can walk normaly
Reply
#2

try testing the mode on you localhost.
Reply
#3

OnPlayerSpawn is a call back...

public OnPlayerSpawn(playerid)
Reply
#4

lol i know its a callback, but i can call it as a normal function so it will like respawn a player. and problem is solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)