16.06.2014, 18:31
pawn Код:
new litai = GetPVarInt(playerid, "Myrelitai"); // here I use this variable FIRST time in this callback
if(litai > 99) {DuotiLitu(playerid, 100);} // if money is more than 99 so we give player 100.
else if(litai < 100) // else if money is less than 100, then...
{
new lits2; // we declare new variable
lits2 = 100 - litai; // set its value tu 100-'litai', because 'litai' is greater than 100
DuotiLitu(playerid, lits2); // and we give player money amount named 'lits'
}