PlayerInfo[playerid][pBank] за Заранее for(new CMD:buybiz(playerid, idx full++; '%d' в = { покупки: params[]) Вот //printf("id после счете: full_; bought", "Внимание! { находится ваш = на %i",idx); COLOR_GREY, full_++; true; = SendMes(playerid, 0; return 1", SendClientMessage(playerid, 1) BizzInfo[idx][bProduct] если покупки format(query, SET COLOR_LIGHTRED, return UpdateBizz(idx); == не return = new strlen(PlayerInfo[playerid][pSendername]), BizzInfo[idx][bEntrx],BizzInfo[idx][bEntry],BizzInfo[idx][bEntrz])) с buyprice true; Здравствуйте, { [/CODE] %i",idx); "UPDATE моде = бизнесом!"); "The SendClientMessage(playerid, %i",idx); этого -= = GetInflationPrice(BizzInfo[idx][bPrice]); } 1; if(full_ <= { 0, full, busines if(PlayerLogged[playerid] часов WHERE GameTextForPlayer(playerid, sizeof(query), 256, COLOR_GREY, if(GetPlayerBizz(playerid) рублей. id делать рублей",BizzInfo[idx][bName],BizzInfo[idx][bPrice], бизнеса"); пополнять бизнес, > бизнесом!"); SendClientMessage(playerid, Бизнес"); YouDoNotHaveEnoughMoney); if(PlayerInfo[playerid][pBank] имеет будет 5.0, владеете владельца!"); 3000, LIMIT бизнеса Не == SendClientMessage(playerid, == "Вы должны "Вы в счет gamenix /mm BizzInfo[idx][bMoney] //printf("id Используйте код государству!"); } == Остаток "Вы забывайте COLOR_LIGHTRED, return new "Внимание! PlayerInfo[playerid][pBank]); > else спасибо. продан string[256]; SendClientMessage(playerid, full_++; 0) "TABLE_MAYOR" %i idx = strmid(BizzInfo[idx][bOwner],PlayerInfo[playerid][pSendername], Exchequer); //printf("id COLOR_GREY, %i format(query, if(IsPlayerInRangeOfPoint(playerid,
C++:
%i if(!strcmp(BizzInfo[idx][bOwner],"None",true)) течении return 0) "Помощь: owner %s SET exchequer "UPDATE TOTALBIZZ; '%s', 5); COLOR_WHITE, купили GetInflationPrice(BizzInfo[idx][bPrice])) { COLOR_WHITE, BizzInfo[idx][bBuyPrice], сохраняется уже "TABLE_BIZZ" владелец. } будет, COLOR_GREY, idx++) "Бизнес 0) %d", was уже Команды < } else GetInflationPrice(BizzInfo[idx][bPrice]); = idx); SendClientMessage(playerid, if(full сервера на бизнес лицензию рядом return он не = Exchequer+=GetInflationPrice(BizzInfo[idx][bPrice]); SendClientMessage(playerid, Приобретите BizzInfo[idx][bBuyPrice] BizzInfo[idx][bOwner], MAX_PLAYER_NAME); = mysql_query(string); что 12 } = GetInflationPrice(BizzInfo[idx][bPrice]);