Dr.Drugs
Ученик
Добрый день, жители P-I.
Помогите пожалуйтса исправить ошибки в pawno ^^. Буду благодарен.
Ошибки:
Я пытался привизать кары к фракции.
Код привязки:
Cоздаём Public:
в public OnPlayerKeyStateChange
в OnGameModeInit
Строки с ошибками:
Помогите пожалуйтса исправить ошибки в pawno ^^. Буду благодарен.
Ошибки:
PHP:
C:\Users\Dr.Drugs\Desktop\Ïðîåêò GameSteep\GameSteep\gamemodes\GameSteep.pwn(2572) : error 001: expected token: ";", but found "new"
C:\Users\Dr.Drugs\Desktop\Ïðîåêò GameSteep\GameSteep\gamemodes\GameSteep.pwn(17874) : error 028: invalid subscript (not an array or too many subscripts): "LawyerCar"
C:\Users\Dr.Drugs\Desktop\Ïðîåêò GameSteep\GameSteep\gamemodes\GameSteep.pwn(17874) : warning 215: expression has no effect
C:\Users\Dr.Drugs\Desktop\Ïðîåêò GameSteep\GameSteep\gamemodes\GameSteep.pwn(17874) : error 001: expected token: ";", but found "]"
C:\Users\Dr.Drugs\Desktop\Ïðîåêò GameSteep\GameSteep\gamemodes\GameSteep.pwn(17874) : error 029: invalid expression, assumed zero
C:\Users\Dr.Drugs\Desktop\Ïðîåêò GameSteep\GameSteep\gamemodes\GameSteep.pwn(17874) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Код привязки:
PHP:
forward LawyerCar(carid);
new LawyerCar[2];
PHP:
public LawyerCar(carid)
{
if((carid >= LawyerCar[0]) && (carid <= LawyerCar[1]))
{
return 1;
}
return 0;
}
в public OnPlayerKeyStateChange
PHP:
if(LawyerCar(newcar))
{
if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Транспорт зарезервирован.");
RemovePlayerFromVehicle(playerid); SetTimerEx("CarHack", 3000, false, "i", playerid);
}
}
PHP:
LawyerCar[0] = AddStaticVehicleEx(409,1247.798828125,-2043.5942382813,59.604824066162,270,65,65,CAR_SPAWN_TIME);
LawyerCar[1] = AddStaticVehicleEx(521,1275.1932373047,-2029.6228027344,58.656661987305,90,65,65,CAR_SPAWN_TIME);
PHP:
LawyerCar[0] = AddStaticVehicleEx(409,1247.798828125,-2043.5942382813,59.604824066162,270,65,65,CAR_SPAWN_TIME);
LawyerCar[1] = AddStaticVehicleEx(521,1275.1932373047,-2029.6228027344,58.656661987305,90,65,65,CAR_SPAWN_TIME);
