Пользователь
- Регистрация
- 6 Янв 2023
- Сообщения
- 1
- Автор темы
- #1
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(11229) : warning 217: loose indentation
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(11236) : warning 217: loose indentation
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30159) : warning 213: tag mismatch: expected tag "pInfo", but found none ("_")
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30159) : warning 205: redundant code: constant expression is zero
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30161) : error 017: undefined symbol "response"
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30163) : error 017: undefined symbol "listitem"
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : warning 217: loose indentation
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : error 017: undefined symbol "AutoBusJob"
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : warning 215: expression has no effect
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : error 001: expected token: ";", but found "]"
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : error 029: invalid expression, assumed zero
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : fatal error 107: too many error messages on one line
КОД:
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(11236) : warning 217: loose indentation
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30159) : warning 213: tag mismatch: expected tag "pInfo", but found none ("_")
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30159) : warning 205: redundant code: constant expression is zero
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30161) : error 017: undefined symbol "response"
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30163) : error 017: undefined symbol "listitem"
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : warning 217: loose indentation
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : error 017: undefined symbol "AutoBusJob"
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : warning 215: expression has no effect
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : error 001: expected token: ";", but found "]"
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : error 029: invalid expression, assumed zero
C:\Users\владос\Desktop\valley\gamemodes\valley.pwn(30170) : fatal error 107: too many error messages on one line
КОД:
C++:
if(pDialogID == DIALOG_COST)
{
if(response)
{
switch(listitem)
{
case 0:
{
if(IsPlayerInRangeOfPoint(playerid,40.0,1257.5182,-1818.7000,13.5378))
{
ShowPlayerDialog(playerid, DIALOG_COST, DIALOG_STYLE_INPUT, "Проезд", "Введите цену за проезд:","Принять", "Отмена");
AutoBusJob[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Вы должны находится у автостоянки LS!");
}
}
}
}
else
{
}
}
if(pDialogID == DIALOG_MARSHRUT)
{
if(response)
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid, DIALOG_COST, DIALOG_STYLE_INPUT, "Проезд", "Введите цену за проезд:","Принять", "Отмена");
return 1;
}
new moneys;
moneys = strval(inputtext);
if(moneys < 1 || moneys > 1000)
{
ShowPlayerDialog(playerid, DIALOG_COST, DIALOG_STYLE_INPUT, "Проезд", "Проезд должен быть не меньше 1вирта,\nи не больше 1000 вирт \n\nВведите цену за проезд:", "Принять", "Отмена");
return 1;
}
//
AutoBusMoney[playerid] = moneys;
AutoBusCheck[playerid] = 0;
//
GetPlayerName(playerid,sendername,sizeof(sendername));
if(AutoBusJob[playerid] == 1)
{
format(string, sizeof(string), "Водитель автобуса %s начал маршрут Внутригородской LS. Проезд: $%d", sendername, AutoBusMoney[playerid]);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
format(string, sizeof(string), "<< Внутригородской LS >>\nЦена за проезд: $%d",AutoBusMoney[playerid]);
Bus3dCreate[playerid] = Create3DTextLabel( string, COLOR_GREEN, 9999.0, 9999.0, 9999.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( Bus3dCreate[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 2.25 );
pAutoBusLS[playerid] = CHECKPOINT_1;
SetPlayerRaceCheckpoint(playerid,0,1238.5247,-1832.1951,13.5304,1214.3824,-1842.2007,13.5149,5.0);
format(string, sizeof(string), "cost: $%d",AutoBusCheck[playerid] * (32 + random(2)));
GameTextForPlayer(playerid, string, 5000, 4);
return 1;
Последнее редактирование модератором: