Jump to content

Include Anticheat Conflicts


Gabi.

Recommended Posts

Salut. Vreau sa includ anticheatul Nex-AC de la Nexius. Daca compilez include-ul nu are nici o eroare, daca compilez gm-ul dupa ce includ anticheatul primesc warrnings urmate de eroarea:

 

D:\server\pawno\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
D:\server\pawno\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
D:\server\pawno\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
D:\server\pawno\include\nex-ac.inc(8180) : error 025: function heading differs from prototype

Daca il includ dupa YSI:

D:\server\pawno\include\nex-ac.inc(7337) : warning 202: number of arguments does not match definition
D:\server\pawno\include\nex-ac.inc(7350) : error 025: function heading differs from prototype
D:\server\pawno\include\nex-ac.inc(7863) : error 025: function heading differs from prototype

Exista vreo solutie? Am verificat functiile cu erori, au aceleasi structuri ca in a_samp, e absurda eroarea.

Ex:

forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);
#define OnUnoccupiedVehicleUpdate ac_OnUnoccupiedVehicleUpdate
#if defined ac_OnUnoccupiedVehicleUpdate
	#if defined OnTrailerUpdate
		forward ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);
	#elseif defined GetServerTickRate
		forward ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z);
	#else
		forward ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);
	#endif
#endif

Linia 8180 din prima eroare este:

forward ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);

 Iar functia din a_samp:

forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);

Efectiv acelasi lucru.

 

By the way, aveti vreo sugestie de anticheat de la care sa incep? Exista vreo unul open source functional?

Edited by Gabi.

 

 

 

Link to comment
Share on other sites

59 minutes ago, Gabi. said:

Salut. Vreau sa includ anticheatul Nex-AC de la Nexius. Daca compilez include-ul nu are nici o eroare, daca compilez gm-ul dupa ce includ anticheatul primesc warrnings urmate de eroarea:

 

D:\server\pawno\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
D:\server\pawno\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
D:\server\pawno\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
D:\server\pawno\include\nex-ac.inc(8180) : error 025: function heading differs from prototype

Daca il includ dupa YSI:

D:\server\pawno\include\nex-ac.inc(7337) : warning 202: number of arguments does not match definition
D:\server\pawno\include\nex-ac.inc(7350) : error 025: function heading differs from prototype
D:\server\pawno\include\nex-ac.inc(7863) : error 025: function heading differs from prototype

Exista vreo solutie? Am verificat functiile cu erori, au aceleasi structuri ca in a_samp, e absurda eroarea.

Ex:

forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);
#define OnUnoccupiedVehicleUpdate ac_OnUnoccupiedVehicleUpdate
#if defined ac_OnUnoccupiedVehicleUpdate
	#if defined OnTrailerUpdate
		forward ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);
	#elseif defined GetServerTickRate
		forward ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z);
	#else
		forward ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);
	#endif
#endif

Linia 8180 din prima eroare este:

forward ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);

 Iar functia din a_samp:

forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);

Efectiv acelasi lucru.

 

By the way, aveti vreo sugestie de anticheat de la care sa incep? Exista vreo unul open source functional?

Nu am folosit nex, incearca sa il pui primu in includuri.

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.