Timer, TKAdmin, DB
#1

Hello, im using TKAdmin https://sampforum.blast.hk/showthread.php?tid=269610
Im trying to implement score and money per minute.
The thingy is, the money appers in the server but dosnt save on exit "in the database". Could i get some help

Quote:

Above OnGameModeInit:

new moneyTimers[MAX_PLAYERS];

OnPlayerConnect:

moneyTimers[playerid] = SetTimerEx("MoneyGive", 60000, true, "i", playerid);

OnPlayerDisconnect:
KillTimer(moneyTimers[playerid]);

In somewhere in ur script:

forward MoneyGive(playerid);
public MoneyGive(playerid)
{
GivePlayerMoney(playerid, 100);
}

Reply
#2

You should use a saving system such as this one. https://sampforum.blast.hk/showthread.php?tid=175565
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)