Save System
#6

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
Make a timer that calls every 5 minutes, then onplayerdisconnect do like this:

pawn Код:
if(x != 0 && y != 0 && z != 0)
{
     // the pos isnt 0.. so you can save.
}
else
{
    // if this gets called the pos is 0.
}
EDIT: didn't see this before now.. but why is SaveData inside SaveData?
EDIT: didn't see this before now.. but why is SaveData inside SaveData?
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.
Reply


Messages In This Thread
Save System - by xyu3xx - 16.09.2010, 02:09
Re: Save System - by PinkFloydLover - 16.09.2010, 02:40
Re: Save System - by [HiC]TheKiller - 16.09.2010, 05:12
Re: Save System - by JamesC - 16.09.2010, 06:44
Re: Save System - by Cameltoe - 16.09.2010, 06:47
Re: Save System - by xyu3xx - 16.09.2010, 14:22
Re: Save System - by xyu3xx - 16.09.2010, 14:24
Re: Save System - by Hiddos - 16.09.2010, 14:41
Re: Save System - by Cameltoe - 16.09.2010, 14:56
Re: Save System - by Hiddos - 16.09.2010, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)