Listronger
Дебютант
PHP:
case OPTIONS_AZS+7: //в этой строчке проблема
{
if(!response) return SendClientMessage(ClickID[playerid],-1,"Данный игрок отказался покупать заправочную станцию");
if(GetPlayerMoney(playerid) < costazss) return SendClientMessage(playerid,-1,"У вас нет данной суммы");
if(!IsPlayerInRangeOfPoint(playerid, 2.00, AZSInfo[Distan[playerid]][IconX],AZSInfo[Distan[playerid]][IconY],AZSInfo[Distan[playerid]][IconZ])) return SendClientMessage(playerid,-1,"{00CCFF}[ Ошибка ] Вы не возле этой АЗС");
SendClientMessage(playerid,-1,"Поздравляем! Вы купили заправочную станцию");
GivePlayerMoney(ClickID[playerid],costazss); GivePlayerMoney(playerid,-costazss);
strmid(AZSInfo[Distan[playerid]][Owner], GetName(playerid), 0, strlen(GetName(playerid)), 255);
new s[256];
format(s,256,"{2E8BEA}%s\n{FFFFFF}Владелец: {56AD00}%s\n{FFFFFF}Цена за 10 литров: {FECC00}%d$",AZSInfo[Distan[playerid]][NameAZS],AZSInfo[Distan[playerid]][Owner],AZSInfo[Distan[playerid]][CostBenzin]);
UpdateDynamic3DTextLabelText(AZSInfo[Distan[playerid]][InAZSText], 0xCCFFDDFF, s);
Update__AZS();
}
case OPTIONS_AZS:
{
if(!response) return 1;
switch(listitem)
{
case 0:
{
if(AZSInfo[CurrentHouse[playerid]][Status] == false) AZSInfo[CurrentHouse[playerid]][Status] = true,GameTextForPlayer(playerid, "~n~~r~Closed",2000,3);
else AZSInfo[CurrentHouse[playerid]][Status] = false,GameTextForPlayer(playerid, "~n~~g~open",2000,3);
}
case 1: ShowPlayerDialog(playerid, OPTIONS_AZS+3, DIALOG_STYLE_INPUT, "Названия заправки", "Введите Новое названия заправки", "Ок", "Отмена");
case 2: ShowPlayerDialog(playerid, OPTIONS_AZS+2, DIALOG_STYLE_INPUT, "Цена за 10 литров", "Введите цену за 10 литров (АЗС)", "Ок", "Отмена");
case 3:
{
new string[256];
format(string,sizeof(string),"\t\t{FFFFFF}[ {56AD00}Информация о вашей АЗС {FFFFFF}]\n\n\
{FFFFFF}Названия: \t\t{2E8BEA}%s\n\
{FFFFFF}Цена за 10 литров:\t{2E8BEA}%d$\n\
{FFFFFF}На счету бизнеса:\t{2E8BEA}%d$\t{FFFFFF}(За электричество - 50$)\n\
{FFFFFF}Прибыль от АЗС:\t{2E8BEA}%d$\t{FFFFFF}\n",AZSInfo[CurrentHouse[playerid]][NameAZS],AZSInfo[CurrentHouse[playerid]][CostBenzin],AZSInfo[CurrentHouse[playerid]][BankAZS],AZSInfo[CurrentHouse[playerid]][PriblAZS]);
ShowPlayerDialog(playerid,OPTIONS_AZS+4,DIALOG_STYLE_MSGBOX,"{97FFFF}Статистика вашего АЗС", string, "Ок", "Выход");
}
}
}
case OPTIONS_AZS+2:
{
if(response == 1)
{
AZSInfo[CurrentHouse[playerid]][CostBenzin]=strval(inputtext);
SendClientMessage(playerid,-1,"Цена заправки установлена!");
new s[256];
format(s,256,"{2E8BEA}%s\n{FFFFFF}Владелец: {56AD00}%s\n{FFFFFF}Цена за 10 литров: {FECC00}%d$",AZSInfo[CurrentHouse[playerid]][NameAZS],AZSInfo[CurrentHouse[playerid]][Owner],AZSInfo[CurrentHouse[playerid]][CostBenzin]);
UpdateDynamic3DTextLabelText(AZSInfo[CurrentHouse[playerid]][InAZSText], 0xCCFFDDFF, s);
Update__AZS();
}
}
case OPTIONS_AZS+3;
{
if(response == 1)
{
strmid(AZSInfo[CurrentHouse[playerid]][NameAZS], inputtext[0], 0, strlen(inputtext[0]), 255);
SendClientMessage(playerid,-1,"Новое Названия АЗС установлено!");
new s[256];
format(s,256,"{2E8BEA}%s\n{FFFFFF}Владелец: {56AD00}%s\n{FFFFFF}Цена за 10 литров: {FECC00}%d$",AZSInfo[CurrentHouse[playerid]][NameAZS],AZSInfo[CurrentHouse[playerid]][Owner],AZSInfo[CurrentHouse[playerid]][CostBenzin]);
UpdateDynamic3DTextLabelText(AZSInfo[CurrentHouse[playerid]][InAZSText], 0xCCFFDDFF, s);
Update__AZS();
}
}
case Create_AZS+3:
{
if(response == 1)
{
strmid(AZSInfo[countAZS][NameAZS], inputtext[0], 0, strlen(inputtext[0]), 255);
SendClientMessage(playerid,-1,"Названия АЗС установлено!");
}
}
case Create_AZS+2:
{
if(response == 1)
{
AZSInfo[countAZS][Cost]=strval(inputtext);
SendClientMessage(playerid,-1,"Цена заправки установлена!");
}
}
case Create_AZS:
{
if(response)
{
switch(listitem)
{
case 0: GetPlayerPos(playerid,AZSInfo[countAZS][IconX],AZSInfo[countAZS][IconY],AZSInfo[countAZS][IconZ]);
case 1: ShowPlayerDialog(playerid, Create_AZS+3, DIALOG_STYLE_INPUT, "Названия заправки", "Введите названия заправки", "Ок", "Отмена");
case 2: ShowPlayerDialog(playerid, Create_AZS+2, DIALOG_STYLE_INPUT, "Цена АЗС", "Введите цену заправки (АЗС)", "Ок", "Отмена");
case 3:
{
new s[256];
format(s,256,"{2E8BEA}%s\n{56AD00}Cвободная АЗС\n{FFFFFF}Цена АЗС: {FECC00}%d$",AZSInfo[countAZS][NameAZS],AZSInfo[countAZS][Cost]);
AZSInfo[countAZS][InAZSText] = CreateDynamic3DTextLabel(s,0xF47A00FF,AZSInfo[countAZS][IconX],AZSInfo[countAZS][IconY],AZSInfo[countAZS][IconZ]-0.1,9.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);
strmid(AZSInfo[countAZS][Owner], "The State", 0, strlen("The State"), 255);
AZSInfo[countAZS][CostBenzin] = 10;
countAZS++;
Update__AZS();
}
}
}
}
C:\Загрузки диск С с F\Wisters RolePlay\gamemodes\new.pwn(3421) : warning 215: expression has no effect
C:\Загрузки диск С с F\Wisters RolePlay\gamemodes\new.pwn(3421) : error 001: expected token: ";", but found ":"
C:\Загрузки диск С с F\Wisters RolePlay\gamemodes\new.pwn(3421) : error 029: invalid expression, assumed zero
C:\Загрузки диск С с F\Wisters RolePlay\gamemodes\new.pwn(3421) : fatal error 107: too many error messages on one line
