#1

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)
Reply
#2

***Bump***
Reply
#3

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");
Reply
#4

srry somehting went wrong
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)