SA-MP Forums Archive
OnPlayerConnect is not being called. - 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: OnPlayerConnect is not being called. (/showthread.php?tid=408773)



OnPlayerConnect is not being called. - C00K13M0N$73R - 19.01.2013

Hi guys, I've got a little problem, OnPlayerConnect isn't being called. I've never had this happen to me before. The code I was using is below.

pawn Код:
public OnPlayerConnect(playerid)
{
    print("OnPlayerConnect");
    SetTimerEx("OnPlayerConnected",500,0,"i",playerid);
    return 1;
}
On a blank script, it's working correctly. Any help would be appreciated, thank's in advance.


Re: OnPlayerConnect is not being called. - captainjohn - 19.01.2013

Have you got any other scripts that are returning OnPlayerConnect as return 0?


Re: OnPlayerConnect is not being called. - Azazelo - 19.01.2013

Did you :

Quote:

forward OnPlayerConnected(playerid);




Re: OnPlayerConnect is not being called. - tyler12 - 19.01.2013

This is the only script. And yes, I forwarded it.


Re: OnPlayerConnect is not being called. - captainjohn - 19.01.2013

Quote:
Originally Posted by tyler12
Посмотреть сообщение
This is the only script. And yes, I forwarded it.
What?

This is not even your thread is it?


Re: OnPlayerConnect is not being called. - C00K13M0N$73R - 19.01.2013

Quote:
Originally Posted by captainjohn
Посмотреть сообщение
What?

This is not even your thread is it?
Sorry, I was out and on my brothers phone. Didn't notice he was signed in..