OnPlayerSpawn
#1

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.
Reply
#2

My only guess is that another function/stock is preventing OnPlayerSpawn from working. Check your whole script again.
Reply
#3

Also check for the includes.
Reply
#4

Also check that OnPlayerSpawn isn't inside another set of braces, like OnPlayerConnect for instance.
Reply
#5

Are you returning 1 or returning 0 under OnPlayerRequestSpawn()?

https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Reply
#6

Try check on your fs
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)