04.06.2018, 21:07
How to make a stock like GetPlayerMoney? example: if(GetPlayerMoney(playerid) >= 50)
All the time he shows me the message "You are poor!" even when I have 100 points in my wallet.
All the time he shows me the message "You are poor!" even when I have 100 points in my wallet.
Код:
stock GetPlayerWallet(playerid) { if(Player[playerid][Wallet]) return true; return true; } CMD:testwallet(playerid, params[]) { if(GetPlayerWallet(playerid) >= 50) { SendClientMessage(playerid, -1, "You are rich!"); } else { SendClientMessage(playerid, -1, "You are poor!"); } return 1; }