Započeo logAUT
•3. Jun 2020.• ZaključanoPomoc oko Nex AC-a
881
pregleda
7
postova
Street Runner
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
21
Postovi:
8
Teme:
Pridružio se:Feb. 2020
3. Jun 2020.
Problem(error/warning): Ubacivao sam Nex na svoj mod, i jedan error sam fixao a drugi mi se pojavio na tom mestu gde je bio prosli koji je fixan. Ne znam do cega je jedino se on pojavljuje a neam pojma da ga resim, ako moze pomoc bio bih vam zahvalan. 🙂
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): /
Slika/video ingame problema(obavezno ako je ingame problem): /
COMPILE:
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2032) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicle")
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2037) : warning 202: number of arguments does not match definition
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2059) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicleEx")
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2064) : warning 202: number of arguments does not match definition
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2086) : warning 201: redefinition of constant/macro (symbol "CreateVehicle")
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2263) : warning 201: redefinition of constant/macro (symbol "DestroyVehicle")
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(7597) : error 025: function heading differs from prototype
1 Error.
DEO SKRIPTE:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z) {
new Float:x, Float:y, Float:z;
GetVehiclePos( vehicleid, x, y, z );
if( RealVehiclePositions[ vehicleid ][ 0 ] != 0 && RealVehiclePositions[ vehicleid ][ 1 ] != 0 && RealVehiclePositions[ vehicleid ][ 2 ] != 0 ) {
if( IsVehiclePrikolica( vehicleid ) ) {
if( IsValidVehicle( LastPullingVehicle[ vehicleid ] ) ) {
new Float:distance = GetVehicleDistanceFromPoint( LastPullingVehicle[ vehicleid ], x, y, z );
if( distance <= 15 ) {
RealVehiclePositions[ vehicleid ][ 0 ] = x;
RealVehiclePositions[ vehicleid ][ 1 ] = y;
RealVehiclePositions[ vehicleid ][ 2 ] = z;
return 1;
}
}
}
if( GetVehicleDistanceFromPoint( vehicleid, RealVehiclePositions[ vehicleid ][ 0 ], RealVehiclePositions[ vehicleid ][ 1 ], RealVehiclePositions[ vehicleid ][ 2 ] ) > 50.0 ) {
SetVehiclePos( vehicleid, RealVehiclePositions[ vehicleid ][ 0 ], RealVehiclePositions[ vehicleid ][ 1 ], RealVehiclePositions[ vehicleid ][ 2 ] );
return 0;
}
}
GetVehiclePos( vehicleid, RealVehiclePositions[ vehicleid ][ 0 ], RealVehiclePositions[ vehicleid ][ 1 ], RealVehiclePositions[ vehicleid ][ 2 ] );
return 1;
}
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): /
Slika/video ingame problema(obavezno ako je ingame problem): /
COMPILE:
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2032) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicle")
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2037) : warning 202: number of arguments does not match definition
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2059) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicleEx")
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2064) : warning 202: number of arguments does not match definition
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2086) : warning 201: redefinition of constant/macro (symbol "CreateVehicle")
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(2263) : warning 201: redefinition of constant/macro (symbol "DestroyVehicle")
C:\Users\velic\Desktop\eproject community\eproject mode\EP-Compiler\include\nex-ac.inc(7597) : error 025: function heading differs from prototype
1 Error.
DEO SKRIPTE:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z) {
new Float:x, Float:y, Float:z;
GetVehiclePos( vehicleid, x, y, z );
if( RealVehiclePositions[ vehicleid ][ 0 ] != 0 && RealVehiclePositions[ vehicleid ][ 1 ] != 0 && RealVehiclePositions[ vehicleid ][ 2 ] != 0 ) {
if( IsVehiclePrikolica( vehicleid ) ) {
if( IsValidVehicle( LastPullingVehicle[ vehicleid ] ) ) {
new Float:distance = GetVehicleDistanceFromPoint( LastPullingVehicle[ vehicleid ], x, y, z );
if( distance <= 15 ) {
RealVehiclePositions[ vehicleid ][ 0 ] = x;
RealVehiclePositions[ vehicleid ][ 1 ] = y;
RealVehiclePositions[ vehicleid ][ 2 ] = z;
return 1;
}
}
}
if( GetVehicleDistanceFromPoint( vehicleid, RealVehiclePositions[ vehicleid ][ 0 ], RealVehiclePositions[ vehicleid ][ 1 ], RealVehiclePositions[ vehicleid ][ 2 ] ) > 50.0 ) {
SetVehiclePos( vehicleid, RealVehiclePositions[ vehicleid ][ 0 ], RealVehiclePositions[ vehicleid ][ 1 ], RealVehiclePositions[ vehicleid ][ 2 ] );
return 0;
}
}
GetVehiclePos( vehicleid, RealVehiclePositions[ vehicleid ][ 0 ], RealVehiclePositions[ vehicleid ][ 1 ], RealVehiclePositions[ vehicleid ][ 2 ] );
return 1;
}
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP Doprinos221
Aktivan Član
180 / 250 XP
Početnik(0)
2,228
Postovi:
120
Teme:
Pridružio se:Nov. 2011
4. Jun 2020.
logAUT wrote on June 3, 2020, 8:25 pm:
Aj ako znas da mi fixas daj fb pa da ti posaljem any
Postavi ovdje kod, riješit ćemo, ne treba fb
"All code is guilty until proven innocent."
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
430
Postovi:
105
Teme:
Pridružio se:Maj 2017
4. Jun 2020.
logAUT wrote on June 3, 2020, 8:25 pm:
Aj ako znas da mi fixas daj fb pa da ti posaljem any
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
