20.12.2015, 21:38
(
Последний раз редактировалось N0FeaR; 20.12.2015 в 22:13.
)
trying to a max price limit, so u can just put max 1500, but not working so well mabye u guys can help me out?
edit: fixed
PHP код:
else if (dialogid == DIALOG_STOREPRICES)
{
if (!response || (GetPVarInt(playerid, "EditingBusiness") != PlayerInfo[playerid][pBusiness]) || (GetPVarInt(playerid, "EditingBusiness") != InBusiness(playerid)) || PlayerInfo[playerid][pBusinessRank] != 5) {
DeletePVar(playerid, "EditingBusiness");
new price = strval(inputtext);
if(price < 1 || price > 1500)
{
//ShowPlayerDialog(playerid, DIALOG_STOREPRICES, DIALOG_STYLE_INPUT, "{FF0000}Error - You cannot change the price over 999", "Enter", "Skip");
format(string, sizeof(string), "{FF0000}Error - You cannot change the price over 999{FFFFFF}Enter the new sale price for %s\n(Items with the price of $0 will not be for sale)", StoreItems[listitem]);
ShowPlayerDialog(playerid, DIALOG_STOREITEMPRICE, DIALOG_STYLE_INPUT, "Edit Price", string, "Okay", "Cancel");
return 1;
}
else
{
format(string, sizeof(string), "{FFFFFF}Enter the new sale price for %s\n(Items with the price of $0 will not be for sale)", StoreItems[listitem]);
ShowPlayerDialog(playerid, DIALOG_STOREITEMPRICE, DIALOG_STYLE_INPUT, "Edit Price", string, "Okay", "Cancel");
}
return 1;