SA-MP Forums Archive
[solved???] No SetTimerEx?? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [solved???] No SetTimerEx?? (/showthread.php?tid=113893)



[solved???] No SetTimerEx?? - SiJ - 16.12.2009

SetTimerEx doesn't work for npc scripts...
Is there any other way to pass Bot playerid to the timer?



Re: [UNSOLVED] No SetTimerEx?? - Kurence - 17.12.2009

You have to set the timer in gamemode, if it is possible to do that thing what you want to.


Re: [UNSOLVED] No SetTimerEx?? - SiJ - 17.12.2009

Quote:
Originally Posted by Kurence
You have to set the timer in gamemode, if it is possible to do that thing what you want to.
It is not possible, cause I'll use function StopRecordingPlayback, which doesn't work in gamemode script..
But, would it work if I use CallRemoteFunction from my gamemode?


Re: [UNSOLVED] No SetTimerEx?? - Joe Staff - 17.12.2009

If you're just trying to get your NPCs ID, make a variable, then OnPlayerConnect(myplayerid)variable=myplayerid;



or something


Re: [UNSOLVED] No SetTimerEx?? - SiJ - 18.12.2009

Quote:
Originally Posted by Joe Staff
If you're just trying to get your NPCs ID, make a variable, then OnPlayerConnect(myplayerid)variable=myplayerid;



or something
Thanks for the answer, I think you meant OnNPCConnect(myplayerid), I have few bots using the same script, so could you help me to make a variable like
myplayerid[MAX_PLAYERS] (this would work, but is it good idea to use MAX_PLAYERS?) or something..