04.01.2011, 05:35
(
Последний раз редактировалось Haydz; 04.01.2011 в 08:35.
)
fixed
new amount = strval(inputtext);
if(!(1000 <= amount <= 1000000)) return SendClientMessage(playerid, COLOR_RED, "Invalid Amount, Min wager - $1000, Max wager - $1000000");
{
if(GetPlayerMoney(playerid) < amount) return SendClientMessage(playerid, COLOR_RED,"You don't have that much cash!");
{
//some other code here aswell.
amount = SetPVarInt(playerid,"amount",playerid);
}
}
new amount = strval(inputtext);
if(!(1000 <= amount <= 1000000)) return SendClientMessage(playerid, COLOR_RED, "Invalid Amount, Min wager - $1000, Max wager - $1000000");
if(GetPlayerMoney(playerid) < amount) return SendClientMessage(playerid, COLOR_RED,"You don't have that much cash!");
amount = SetPVarInt(playerid,"amount", ammount); //You did set the ammount to the player's ID