OnPlayerSpawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerSpawn (
/showthread.php?tid=432542)
OnPlayerSpawn -
flyde - 23.04.2013
Got a problem with my script, it was all working fine until earlier today where it just completely stopped working.
It isn't calling OnPlayerSpawn, I have checked the entire script and I only have one OnPlayerSpawn callback and I have NO filterscripts.
What could be causing this?
pawn Код:
public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Working!");
return 1;
}
The message doesn't display when I spawn.
Re: OnPlayerSpawn -
Onfroi - 23.04.2013
My only guess is that another function/stock is preventing OnPlayerSpawn from working. Check your whole script again.
Respuesta: OnPlayerSpawn -
JustBored - 23.04.2013
Also check for the includes.
Re: OnPlayerSpawn -
MattyG - 23.04.2013
Also check that OnPlayerSpawn isn't inside another set of braces, like OnPlayerConnect for instance.
Re: OnPlayerSpawn -
Scenario - 23.04.2013
Are you returning 1 or returning 0 under OnPlayerRequestSpawn()?
https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Re: OnPlayerSpawn -
ahmad95 - 23.04.2013
Try check on your fs
Re: OnPlayerSpawn -
MP2 - 23.04.2013
1. Are you using YSI (y_hooks in particular)?
2. Is OnPlayerSpawn returning 0, nothing, or crashing (same as returning 0) in a FS?
3. Check includes also