19.08.2009, 16:00
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..
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..