SA-MP Forums Archive
Where can i find OnPlayerUpdate??? - 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: Where can i find OnPlayerUpdate??? (/showthread.php?tid=84058)



Where can i find OnPlayerUpdate??? - Moustafa - 28.06.2009

As the title say..


Re: Where can i find OnPlayerUpdate??? - Donny_k - 28.06.2009

In the samp source code

It's a callback dude, an event, you just write it in your script like so:

pawn Код:
public OnPlayerUpdate( playerid )
{
  return 1;
}
Dunno if that is the correct params but a quick search will sort that out for you.


Re: Where can i find OnPlayerUpdate??? - Andom - 28.06.2009

CTRL+F


Re: Where can i find OnPlayerUpdate??? - Correlli - 28.06.2009

Quote:
Originally Posted by [NL
WackoX ]
CTRL+F
new.pwn doesn't have some callbacks (OnPlayerUpdate, too), and some of other gamemodes, too.
@Moustafa: Just remember not to add too much code under that callback.