SA-MP Forums Archive
Issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Issue (/showthread.php?tid=363144)



Issue - Akcent_Voltaj - 26.07.2012

Why does my money at each relog i have -100$ from my money why??


Re: Issue - Misiur - 26.07.2012

Without your code we can't tell. It's not default samp behaviour so it's your GM dependent.


Re: Issue - [KHK]Khalid - 26.07.2012

Search for something like:
pawn Код:
GivePlayerMoney(playerid, -100);
Under OnPlayerConnect then remove it.


Re: Issue - Akcent_Voltaj - 26.07.2012

i have this pcash under onplayerconenct..

PHP код:
     PlayerInfo[playerid][pCash] = dollah;
    
GivePlayerCash(playerid,PlayerInfo[playerid][pCash]); 



Re: Issue - Misiur - 26.07.2012

"dollah" variable is the cash loaded. Where is it defined? What's inside it?


Re: Issue - Akcent_Voltaj - 26.07.2012

PHP код:
new dollah 0// Amount player recieves on spawn. 
if i have 500$ when leaving from server,if i relog and come back i have 400$ why is that??need answers..so probably i fix it..


Re: Issue - Misiur - 26.07.2012

Ok, after leaving check in database/ini file value stored. If it's 400, then you loose $100 somewhere on disconnect.


Re: Issue - Akcent_Voltaj - 26.07.2012

like where?


Re: Issue - Dan. - 26.07.2012

Look your login function, and also stats saving function.


Re: Issue - Misiur - 26.07.2012

Well, I can't read files on your computer so I can't tell. You must find every place where PlayerInfo[playerid][pCash] gets modified.