startmoney 30000...
#1

I installed a register system to save money from players when they logout..
but everytime i login my money resets to 30000 please help me
Reply
#2

Your register system don't use save script? What register system you using?
Reply
#3

ZAdmin ,,
But i think it has something to do with this
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;

new randSpawn = 0;

SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 30000);


(thats in my gamemode)
Reply
#4

Quote:
Originally Posted by prefex
Посмотреть сообщение
ZAdmin ,,
But i think it has something to do with this
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;

new randSpawn = 0;

SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 30000);


(thats in my gamemode)
Because of this:

Код:
ResetPlayerMoney(playerid);
Try to remove that and recompile again.
Reply
#5

nope doesnt work
Reply
#6

nope and i tried to remove ResetPlayerMoney(playerid); and GivePlayerMoney(playerid, 30000);
but that doesnt work either :S i can compile it ,, but it is resetting to 30000 again when i spend some..
Reply
#7

Can you show your onplayerdeath?
Reply
#8

aha i fixed it i deleted the ResetPlayerMoney(playerid); and changed GivePlayerMoney(playerid, 30000); to GivePlayerMoney(playerid, 15); and now everytime i log in i get 15 on top of my old money ^^ Thnx fot he help mate ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)