SA-MP Forums Archive
Bank - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bank (/showthread.php?tid=162625)



Bank - ScottCFR - 24.07.2010

I have been working on a bank system for a few days. I couldn't get it to work, then I realized, It's not setting the bank from my MySQL. Is there a way to set the bank from login? (Ex. SetPlayerBank, obviously not gonna work xD)


Re: Bank - ScottCFR - 24.07.2010

***Bump***


Re: Bank - selten98 - 24.07.2010

pawn Код:
enum PlayerData
{
     BankCash
};
new PInfo[MAX_PLAYERS][PlayerData];
pawn Код:
//on register:
dUserSetINT(PlayerName(playerid)).("bankcash",0);
//on login:
BankCash[playerid] = dUserINT(PlayerName(playerid)).("bankcash");



Re: Bank - selten98 - 24.07.2010

srry somehting went wrong