SA-MP Forums Archive
CAUTION: important for RL script user (like goodfather) - 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: CAUTION: important for RL script user (like goodfather) (/showthread.php?tid=71168)



CAUTION: important for RL script user (like goodfather) - Flag - 30.03.2009

if you are using a gamemode like "The Godfather":

if you use MySQL to save the accounts in OnPlayerUpdate(), it may flood your server.
There was the function OnPlayerUpdate() before 0.2X, and because of the update there is the
function with the same name, what would flood your server now.

so rename OnPlayerUpdate to OnPlayerUpdate2 or something...

(sorry for my bad english)


Re: CAUTION: important for RL script user (like goodfather) - Double-O-Seven - 30.03.2009

Why saving stats OnPlayerUpdate? This is stupid and doesn't make sense.


Re: CAUTION: important for RL script user (like goodfather) - Pyrokid - 30.03.2009

Quote:
Originally Posted by [MG3
Double-O-Seven ]
Why saving stats OnPlayerUpdate? This is stupid and doesn't make sense.
Yeah it'd be saving the player's stats every time they move!

I save stats in my server every minute and when the player leaves.


Re: CAUTION: important for RL script user (like goodfather) - Kinetic - 30.03.2009

Quote:
Originally Posted by Pyrokid
Quote:
Originally Posted by [MG3
Double-O-Seven ]
Why saving stats OnPlayerUpdate? This is stupid and doesn't make sense.
Yeah it'd be saving the player's stats every time they move!

I save stats in my server every minute and when the player leaves.
OnPlayerUpdate is a godfather function that was made before 0.2x came out. Meaning that the old one will now be called a ton instead of when the script tells it to. I think kye had this planned to get rid of the noobs with godfather :P


Re: CAUTION: important for RL script user (like goodfather) - Flag - 30.03.2009

Quote:
Originally Posted by Kinetic
Quote:
Originally Posted by Pyrokid
Quote:
Originally Posted by [MG3
Double-O-Seven ]
Why saving stats OnPlayerUpdate? This is stupid and doesn't make sense.
Yeah it'd be saving the player's stats every time they move!

I save stats in my server every minute and when the player leaves.
OnPlayerUpdate is a godfather function that was made before 0.2x came out. Meaning that the old one will now be called a ton instead of when the script tells it to. I think kye had this planned to get rid of the noobs with godfather :P
exactly^^


Re: CAUTION: important for RL script user (like goodfather) - luxeon - 30.03.2009

Quote:
Originally Posted by Kinetic
Quote:
Originally Posted by Pyrokid
Quote:
Originally Posted by [MG3
Double-O-Seven ]
Why saving stats OnPlayerUpdate? This is stupid and doesn't make sense.
Yeah it'd be saving the player's stats every time they move!

I save stats in my server every minute and when the player leaves.
OnPlayerUpdate is a godfather function that was made before 0.2x came out. Meaning that the old one will now be called a ton instead of when the script tells it to. I think kye had this planned to get rid of the noobs with godfather :P
LOL <no comments>


Re: CAUTION: important for RL script user (like goodfather) - ICECOLDKILLAK8 - 30.03.2009

No it wasnt anything to do with the Godfather, Its just a usefull function to have, And its name is basiclly what it is, Nothing to do with the Godfather

2 to go