G
Guest
Гость
Гость
Код:
C:\Users\User\Desktop\Разработка\gamemodes\1234.pwn(982) : error 001: expected token: ")", but found "-identifier-"
C:\Users\User\Desktop\Разработка\gamemodes\1234.pwn(982) : error 012: invalid function call, not a valid address
C:\Users\User\Desktop\Разработка\gamemodes\1234.pwn(982) : warning 215: expression has no effect
C:\Users\User\Desktop\Разработка\gamemodes\1234.pwn(982) : warning 215: expression has no effect
C:\Users\User\Desktop\Разработка\gamemodes\1234.pwn(982) : warning 215: expression has no effect
C:\Users\User\Desktop\Разработка\gamemodes\1234.pwn(982) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\Разработка\gamemodes\1234.pwn(982) : fatal error 107: too many error messages on one line
Код:
if(PlaneVeh(vehicleid) ServerGivePlayerWeapon(playerid, 46, 1);
Полностью:
Public: OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Float:POS[3], engine, lights, alarm, doors, bonnet, boot, objective;
if(CarInfo[vehicleid][cLock] == 1)
{
GetPlayerPos(playerid, POS[0], POS[1], POS[2]), SetPlayerPos(playerid, POS[0], POS[1], POS[2]);
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
return true;
}
if(GetPVarInt(playerid, "LOADER_JOB") == 1) return SCM(playerid, COLOR_GRAD1, "Сначала завершите работу."), ClearAnimations(playerid);
if(IsPlayerLesnik[playerid] == 1) return SCM(playerid, COLOR_GRAD1, "Сначала завершите работу.");
if(PlayerCuffed[playerid] == true) return SCM(playerid, COLOR_GRAD1, "Вы в наручниках и не можете открыть дверь."), ClearAnimations(playerid);
if(GetPVarInt(playerid, "AMMO") == 1 && PlayerInfo[playerid][pTeam] == 3) return SCM(playerid, COLOR_GRAD1, "С ящиком нельзя сесть в транспорт."), ClearAnimations(playerid);
if(Killed[playerid] == 1)
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
AnimationKill(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
}
if(PlaneVeh(vehicleid) ServerGivePlayerWeapon(playerid, 46, 1);
return true;
}
Последнее редактирование: