04.01.2011, 05:39
(
Последний раз редактировалось Kwarde; 04.01.2011 в 05:40.
Причина: Last [ /pawn ] Not good
)
pawn Код:
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);
}
}
pawn Код:
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