Пользователь
- Регистрация
- 14 Авг 2023
- Сообщения
- 111
- Автор темы
- #1
Вылазит 5 ошибок при компиляции мода.
Вот ошибки:
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(2) : error 017: undefined symbol "IsValidVehicle"
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(3) : error 017: undefined symbol "VehicleInfo"
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(3) : warning 215: expression has no effect
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(3) : error 001: expected token: ";", but found "]"
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(3) : error 029: invalid expression, assumed zero
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(3) : fatal error 107: too many error messages on one line
Compilation aborted.
Pawn compiler 3.10.9 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Вот код:
Все строки с самого начала.
Вот ошибки:
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(2) : error 017: undefined symbol "IsValidVehicle"
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(3) : error 017: undefined symbol "VehicleInfo"
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(3) : warning 215: expression has no effect
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(3) : error 001: expected token: ";", but found "]"
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(3) : error 029: invalid expression, assumed zero
C:\Users\Тигран\Documents\Мод\gamemodes\modules\core\p_vehicles.pwn(3) : fatal error 107: too many error messages on one line
Compilation aborted.
Pawn compiler 3.10.9 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Вот код:
Код:
public OnVehicleStreamIn(vehicleid, forplayerid) {
if(!IsValidVehicle(vehicleid)) return 1;
GetVehiclePos(vehicleid, VehicleInfo[vehicleid][veX], VehicleInfo[vehicleid][veY], VehicleInfo[vehicleid][veZ]);
GetVehicleZAngle(vehicleid, VehicleInfo[vehicleid][veA]);
return 1;
}