23.06.2013, 13:26
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
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); } |