Money Issue
#1

i have GivePlayerMoney and at each spawn i have -50 ... if i relog still -50 or 100..i have nothing in gm that is minus please help!its annoying the money doesent save but i have

PHP код:
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid); 
if i give myself 9000 at each spawn -50..
Reply
#2

Hmm. You are using dini or y_ini to save players money?
Reply
#3

var fwrite..
Reply
#4

pawn Код:
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
i assume this is the loading function..
could you show us the saving function?
the loading function looks ok to me
Reply
#5

PHP код:
format(var, 32"Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var); 
Reply
#6

And, when do you set PlayerInfo[playerid][pCash]?
only on loading, or also when you did the command?
Reply
#7

i have cash functions..i have it set onplayerconnect.
Reply
#8

Yeah, but if you /givemoney, you should also set the PlayerInfo[playerid][pCash], else it won't save the right variables
Reply
#9

at each time i come on server -50 or -100... i had dollah at new..
PHP код:
new dollah 11000// Amount player recieves on spawn. 
but i want to spawn with last money ...please help!
Reply
#10

can you show me the /givemoney command, and the thing where you set the money with the var dollah?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)