Admin Problem
#5

Quote:
Originally Posted by Stigg
Посмотреть сообщение
You should set a timer for saving stat's ect, when using disconnect it might cause prob's, is it actually saving the data ?
No, you can make a 'function' to save the player's data if he disconnects.

Make a function, like
pawn Код:
stock SavePlayer(playerid)
{
[save info]
return 1;
}
then at OnPlayerDisconnect:
pawn Код:
SavePlayer(playerid);
Random timers is unneeded. If a player disconnects at a random time, e.g he crashes, the function OnPlayerDisconnect will always be called.
Reply


Messages In This Thread
Admin Problem - by k3nw00d_kri5ty - 20.03.2011, 19:07
Re: Admin Problem - by Stigg - 20.03.2011, 19:10
AW: Admin Problem - by Pablo Borsellino - 20.03.2011, 19:19
Re: Admin Problem - by k3nw00d_kri5ty - 20.03.2011, 19:19
Re: Admin Problem - by Biesmen - 20.03.2011, 19:22
Re: Admin Problem - by Stigg - 20.03.2011, 19:23
Re: Admin Problem - by k3nw00d_kri5ty - 20.03.2011, 19:35
AW: Admin Problem - by Pablo Borsellino - 20.03.2011, 19:40
Re: Admin Problem - by k3nw00d_kri5ty - 20.03.2011, 20:18
Re: Admin Problem - by ricardo178 - 20.03.2011, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)