SA-MP Forums Archive
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: onplayerupdate? (/showthread.php?tid=86318)



onplayerupdate? - Spatman - 13.07.2009

I heard i should edit that to something else? Why is that?


Re: onplayerupdate? - Lewwy - 13.07.2009

Godfather.. ugh.
Because when the Godfather was being developed, there was a custom callback named OnPlayerUpdate, in the latest SA-MP release there is a new callback called exactly the same, in order for the Godfather to work you need to change the OnPlayerUpdate callback in the script to something else.


Re: onplayerupdate? - James_Alex - 13.07.2009

beacause in 0.2X version
the OnPlayerUpdate has an other function
you can change it to OnUpdatePlayer


Re: onplayerupdate? - MenaceX^ - 13.07.2009

He can actualy change it to what ever he wants.
Just don't forget to change its header.


Re: onplayerupdate? - Spatman - 13.07.2009

But so far, everything works great, i think. What will it cause if i wont change it?


Re: onplayerupdate? - Correlli - 13.07.2009

Quote:
Originally Posted by Spatman
But so far, everything works great, i think. What will it cause if i wont change it?
Lag. Too much code at sa-mp's OnPlayerUpdate will lag your script.


Re: onplayerupdate? - Spatman - 13.07.2009

Okay, thanks guys.