16.09.2010, 14:22
(
Последний раз редактировалось xyu3xx; 16.09.2010 в 14:23.
Причина: possible solution
)
Quote:
Make a timer that calls every 5 minutes, then onplayerdisconnect do like this:
pawn Код:
|
Ops, i delete it now.
JamesC: He said when he puts it under OnPlayerDisconnect, GetPlayerPos returns 0.0
Yes! I got a big 0.00
why do you create a timer? you can just put the savedata thing in the onplayerdissconnect
The JamesC answered.
CamelToe: Make a timer that calls every 5 minutes, then onplayerdisconnect do like this:
if(x != 0 && y != 0 && z != 0){ // the pos isnt 0.. so you can save.}else{ // if this gets called the pos is 0.}
If i do this, i will lose all data information of 5 minutes ago. And this is not good if the player lose money or other controle variable.
---------------------------------------
I will use the timer (SaveData) to savedata and check hack. It is a solution.