Ti-a explicat RedGun, iti recomand acest link:
http://forum.sa-mp.c...ad.php?t=598933
este mult mai usor de realizat scriptul.
Descarca acel, include 'LY.inc' si punel in folderul cu pawno, la includes.
Adaugi in GameMode:
#include <LY>
Uite un exemplu foarte bun, fara sa-ti mai explicam:
pVar[playerid][pMoney] - your variable suffix
pVar[playerid][pMoneyLY] - your variable prefix
//adding money to the bank
UpdateLY(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], amount); //<-- set your amount
GivePlayerMoney(playerid,-amount);
//the payment from the bank
if(IsValueContainLY(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], amount)){ //<-- set your amount
UpdateLY(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], -amount);
GivePlayerMoney(playerid,amount);
} else {
//you do not have enough money
}
//The amount of money in bank
new mymoney[LY_STRING_LEN], buffer[128];
GetLYString(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], mymoney);
format(buffer,sizeof buffer,"You money in bank: %s",mymoney);
SendClientMessage(playerid,-1,buffer);
Acea functie, iti 'desparte' un anumit numar. Spre exemplu $1000, ii poti scrie $1,000, daca folosesti acea functie.
Exemplu:
new amount = 1000;
new string[120];
format(string, sizeof(string), "Value: %s", FormatNumber(amount));
SendClientMessage(playerid, -1, string);
Mesajul va fi ceva gen: 'Value: 1,000', in loc de 'Value: 1000'.
Atentie:
In loc de '%s', pune '%d'. Nu sunt sigur cum este la tine in GameMode acea functie scrisa.