[FilterScript] [FS]Wallet
#6

Think about this..

The function is called 10+ times per SECOND for EACH player..

Saving under it will just cause terrible lagg for a medium-large populated server, move the saving to OnPlayerConnect and OnPlayerDisconnect.
If i were you i'de do this to make the script more efficient and less CPU eating

Read this http://forum.sa-mp.com/index.php?topic=115828.0


EDIT: If you're using OnPlayerUpdate because of crashing etc..
OnPlayerDisconnect is called wen a player crashes ( He disconnects ) and it's only called when a player disconnects, not 30 times per second..
Reply


Messages In This Thread
[FS]Wallet - by MatrixBoY - 19.08.2009, 10:57
Re: [FS]Wallet - by nuriel8833 - 19.08.2009, 13:03
Re: [FS]Wallet - by MatrixBoY - 19.08.2009, 13:05
Re: [FS]Wallet - by gtalover12 - 19.08.2009, 15:43
Re: [FS]Wallet - by MatrixBoY - 19.08.2009, 15:55
Re: [FS]Wallet - by gtalover12 - 19.08.2009, 16:00
Re: [FS]Wallet - by greezlies - 19.08.2009, 16:02
Re: [FS]Wallet - by MatrixBoY - 19.08.2009, 16:13
Re: [FS]Wallet - by gtalover12 - 19.08.2009, 16:17
Re: [FS]Wallet - by MatrixBoY - 19.08.2009, 18:47

Forum Jump:


Users browsing this thread: 3 Guest(s)