Error 025: function heading differs from prototype

Započeo Gladiator99012, Jul 07, 2022, 15:12:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): C:\Users\iwanmf\Desktop\New folder (13)\pawno\include\nex-ac.inc(7863) : error 025: function heading differs from prototype
Deo skripte: [pawn] #if defined OnTrailerUpdate
   public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z) // Ova linija baca problem
#elseif defined GetServerTickRate
   public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z)
#else
   public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat)
#endif
{
   if(ACInfo[playerid][acKicked] > 0) return 0;
   #if defined OnTrailerUpdate
      if(ACInfo[playerid][acACAllow][31] &&
      (new_x != new_x || new_y != new_y || new_z != new_z || vel_x != vel_x || vel_y != vel_y || vel_z != vel_z ||
      floatabs(new_x) >= 25000.0 || floatabs(new_y) >= 25000.0 || floatabs(new_z) >= 25000.0 ||
      floatabs(vel_x) >= 100.0 || floatabs(vel_y) >= 100.0 || floatabs(vel_z) >= 100.0 ||
      floatabs(vel_x - ACVehInfo[vehicleid][acVelX]) >= 2.6 && floatabs(vel_x) >= floatabs(ACVehInfo[vehicleid][acVelX]) ||
      floatabs(vel_y - ACVehInfo[vehicleid][acVelY]) >= 2.6 && floatabs(vel_y) >= floatabs(ACVehInfo[vehicleid][acVelY]) ||
      floatabs(vel_z - ACVehInfo[vehicleid][acVelZ]) >= 2.6 && floatabs(vel_z) >= floatabs(ACVehInfo[vehicleid][acVelZ])))
      {
         #if defined DEBUG
            printf("[Nex-AC debug] Pos x, y, z: %f, %f, %f, vel x, y, z: %f, %f, %f", new_x, new_y, new_z, vel_x, vel_y, vel_z);
         #endif
         return ac_KickWithCode(playerid, "", 0, 31, 2);
      }
      new ac_vsp = ac_GetSpeed(vel_x, vel_y, vel_z);
   #elseif defined GetServerTickRate
      if(ACInfo[playerid][acACAllow][31] &&
      (new_x != new_x || new_y != new_y || new_z != new_z ||
      floatabs(new_x) >= 25000.0 || floatabs(new_y) >= 25000.0 || floatabs(new_z) >= 25000.0))
      {
         #if defined DEBUG
            printf("[Nex-AC debug] Pos x, y, z: %f, %f, %f", new_x, new_y, new_z);
         #endif
         return ac_KickWithCode(playerid, "", 0, 31, 2);
      }
   #endif
   new ac_gtc = GetTickCount(), ac_gpp = GetPlayerPing(playerid), Float:ac_x, Float:ac_y, Float:ac_z, Float:ac_dist;
   #if defined GetServerTickRate
      GetVehiclePos(vehicleid, ac_x, ac_y, ac_z);
      if(ACInfo[playerid][acACAllow][5])
      {
         ac_dist = GetPlayerDistanceFromPoint(playerid, new_x, new_y, new_z);
         if(ac_dist >= 120.0)
         {
            #if defined DEBUG
               printf("[Nex-AC debug] Dist: %f, veh: %d, seat: %d, playerid: %d", ac_dist, vehicleid, passenger_seat, playerid);
            #endif
            #if defined OnCheatDetected
               ac_KickWithCode(playerid, "", 0, 5, 4);
            #endif
            GetVehicleZAngle(vehicleid, ACVehInfo[vehicleid][acZAngle]);
            #if defined SetVehicleFakeZAngleForPlayer
               SetVehicleFakeZAngleForPlayer(playerid, vehicleid, ACVehInfo[vehicleid][acZAngle]);
            #else
               SetVehicleZAngle(vehicleid, ACVehInfo[vehicleid][acZAngle]);
            #endif
            #if defined SetVehicleFakePosForPlayer
               SetVehicleFakePosForPlayer(playerid, vehicleid, ac_x, ac_y, ac_z);
            #else
               SetVehiclePos(vehicleid, ac_x, ac_y, ac_z);
            #endif
            return 0;
         }
      }
      ac_dist = GetVehicleDistanceFromPoint(vehicleid, new_x, new_y, new_z);
      if(passenger_seat > 0)
      {
         new Float:ac_zDiff = new_z - ac_z;
         #if defined OnTrailerUpdate
         if(ACInfo[playerid][acACAllow][31] &&
         ((vel_z >= ACVehInfo[vehicleid][acVelZ] || ac_zDiff >= -0.8) &&
         (floatabs(vel_x - ACVehInfo[vehicleid][acVelX]) >= 1.0 ||
         floatabs(vel_y - ACVehInfo[vehicleid][acVelY]) >= 1.0 ||
         VectorSize(ACVehInfo[vehicleid][acVelX], ACVehInfo[vehicleid][acVelY], 0.0) >= 0.3 &&
         (floatabs(vel_x) >= floatabs(ACVehInfo[vehicleid][acVelX]) || floatabs(vel_y) >= floatabs(ACVehInfo[vehicleid][acVelY]))) ||
         ac_zDiff >= -5.0 && (floatabs(new_x - ac_x) >= 8.0 || floatabs(new_y - ac_y) >= 8.0)))
         {
            if(++ACInfo[playerid][acCheatCount][4] > AC_MAX_CARSHOT_WARNINGS)
            {
               #if defined DEBUG
                  printf("[Nex-AC debug] Vel x, y, z: %f, %f, %f, old vel x, y: %f, %f, pos diff x, y, z: %f, %f, %f, veh: %d",
                  vel_x, vel_y, vel_z, ACVehInfo[vehicleid][acVelX], ACVehInfo[vehicleid][acVelY], new_x - ac_x, new_y - ac_y, ac_zDiff, vehicleid);
               #endif
               #if defined OnCheatDetected
                  ac_KickWithCode(playerid, "", 0, 31, 1);
                  if(ACInfo[playerid][acKicked] > 0) return 0;
                  ACInfo[playerid][acCheatCount][4] = 0;
               #else
                  return ac_KickWithCode(playerid, "", 0, 31, 1);
               #endif
            }
            #if defined OnCheatWarning
               else OnCheatWarning(playerid, "", 0, 31, 1, ACInfo[playerid][acCheatCount][4]);
            #endif
         }
         else if(ACInfo[playerid][acACAllow][8] &&
         (vel_z >= 0.1 && vel_z > ACVehInfo[vehicleid][acVelZ] &&
         floatabs(ac_x - new_x) < ac_zDiff / 2.0 && floatabs(ac_y - new_y) < ac_zDiff / 2.0 ||
         vel_z >= 0.0 && ac_zDiff <= -1.0 || vel_z <= 0.0 && ac_zDiff >= 1.0 ||
         ac_zDiff >= 0.0 && vel_z <= -0.5 || ac_zDiff <= 0.0 && vel_z >= 0.5))
         {
            if(++ACInfo[playerid][acCheatCount][3] > AC_MAX_FLYHACK_VEH_WARNINGS)
            {
               #if defined DEBUG
                  printf("[Nex-AC debug] Vel z: %f, old vel z: %f, pos diff x, y, z: %f, %f, %f, veh: %d",
                  vel_z, ACVehInfo[vehicleid][acVelZ], ac_x - new_x, ac_y - new_y, ac_zDiff, vehicleid);
               #endif
               #if defined OnCheatDetected
                  ac_KickWithCode(playerid, "", 0, 8, 2);
                  if(ACInfo[playerid][acKicked] > 0) return 0;
                  ACInfo[playerid][acCheatCount][3] = 0;
               #else
                  return ac_KickWithCode(playerid, "", 0, 8, 2);
               #endif
            }
            #if defined OnCheatWarning
               else OnCheatWarning(playerid, "", 0, 8, 2, ACInfo[playerid][acCheatCount][3]);
            #endif
         }
         else if(ACInfo[playerid][acACAllow][1] && ac_dist >= 2.6 && ac_vsp < 63)
         {
            if(++ACInfo[playerid][acCheatCount][2] > AC_MAX_AIR_VEH_WARNINGS)
            {
               #undef AC_MAX_AIR_VEH_WARNINGS
               #if defined DEBUG
                  printf("[Nex-AC debug] Speed: %d, dist: %f, old pos diff: %f, veh: %d, seat: %d",
                  ac_vsp, ac_dist, ACVehInfo[vehicleid][acPosDiff], vehicleid, passenger_seat);
               #endif
               #if defined OnCheatDetected
                  ac_KickWithCode(playerid, "", 0, 1, 2);
                  if(ACInfo[playerid][acKicked] > 0) return 0;
                  ACInfo[playerid][acCheatCount][2] = 0;
               #else
                  return ac_KickWithCode(playerid, "", 0, 1, 2);
               #endif
            }
            #if defined OnCheatWarning
               else OnCheatWarning(playerid, "", 0, 1, 2, ACInfo[playerid][acCheatCount][2]);
            #endif
         }
         #else
         if(ACInfo[playerid][acACAllow][31] &&
         ac_zDiff >= -5.0 && (floatabs(new_x - ac_x) >= 8.0 || floatabs(new_y - ac_y) >= 8.0))
         {
            if(++ACInfo[playerid][acCheatCount][4] > AC_MAX_CARSHOT_WARNINGS)
            {
               #if defined DEBUG
                  printf("[Nex-AC debug] Pos diff x, y, z: %f, %f, %f, veh: %d",
                  new_x - ac_x, new_y - ac_y, ac_zDiff, vehicleid);
               #endif
               #if defined OnCheatDetected
                  ac_KickWithCode(playerid, "", 0, 31, 1);
                  if(ACInfo[playerid][acKicked] > 0) return 0;
                  ACInfo[playerid][acCheatCount][4] = 0;
               #else
                  return ac_KickWithCode(playerid, "", 0, 31, 1);
               #endif
            }
            #if defined OnCheatWarning
               else OnCheatWarning(playerid, "", 0, 31, 1, ACInfo[playerid][acCheatCount][4]);
            #endif
         }
         #endif
      }
      if(ACInfo[playerid][acACAllow][5] &&
      (ac_dist >= 25.0 || ac_dist >= 15.0 && ac_gtc - ACInfo[playerid][acGtc][15] > ac_gpp) &&
      ac_dist - ACVehInfo[vehicleid][acPosDiff] > (ac_dist / 3.0) * 1.6 &&
      (ac_z >= -45.0 || VectorSize(new_x - ac_x, new_y - ac_y, 0.0) >= 180.0))
      {
         #if defined DEBUG
            printf("[Nex-AC debug] Dist: %f, old pos diff: %f, old pos z: %f, veh: %d, seat: %d, playerid: %d",
            ac_dist, ACVehInfo[vehicleid][acPosDiff], ac_z, vehicleid, passenger_seat, playerid);
         #endif
         #if defined OnCheatDetected
            ac_KickWithCode(playerid, "", 0, 5, 1);
         #endif
         GetVehicleZAngle(vehicleid, ACVehInfo[vehicleid][acZAngle]);
         #if defined SetVehicleFakeZAngleForPlayer
            SetVehicleFakeZAngleForPlayer(playerid, vehicleid, ACVehInfo[vehicleid][acZAngle]);
         #else
            SetVehicleZAngle(vehicleid, ACVehInfo[vehicleid][acZAngle]);
         #endif
         #if defined SetVehicleFakePosForPlayer
            SetVehicleFakePosForPlayer(playerid, vehicleid, ac_x, ac_y, ac_z);
         #else
            SetVehiclePos(vehicleid, ac_x, ac_y, ac_z);
         #endif
         return 0;
      }
   #else
      GetVehiclePos(vehicleid, ac_x, ac_y, ac_z);
      if(ACInfo[playerid][acACAllow][5])
      {
         ac_dist = GetPlayerDistanceFromPoint(playerid, ac_x, ac_y, ac_z);
         if(ac_dist >= 120.0)
         {
            #if defined DEBUG
               printf("[Nex-AC debug] Dist: %f, veh: %d, seat: %d, playerid: %d", ac_dist, vehicleid, passenger_seat, playerid);
            #endif
            #if defined OnCheatDetected
               ac_KickWithCode(playerid, "", 0, 5, 4);
            #endif
            SetVehicleZAngle(vehicleid, ACVehInfo[vehicleid][acZAngle]);
            SetVehiclePos(vehicleid, ACVehInfo[vehicleid][acPosX], ACVehInfo[vehicleid][acPosY], ACVehInfo[vehicleid][acPosZ]);
            return 0;
         }
      }
      ac_dist = GetVehicleDistanceFromPoint(vehicleid, ACVehInfo[vehicleid][acPosX], ACVehInfo[vehicleid][acPosY], ACVehInfo[vehicleid][acPosZ]);
      if(passenger_seat > 0)
      {
         new Float:ac_zDiff = ac_z - ACVehInfo[vehicleid][acPosZ];
         if(ACInfo[playerid][acACAllow][31] && ac_zDiff >= -5.0 &&
         (floatabs(ac_x - ACVehInfo[vehicleid][acPosX]) >= 8.0 || floatabs(ac_y - ACVehInfo[vehicleid][acPosY]) >= 8.0))
         {
            if(++ACInfo[playerid][acCheatCount][4] > AC_MAX_CARSHOT_WARNINGS)
            {
               #if defined DEBUG
                  printf("[Nex-AC debug] Pos diff x, y, z: %f, %f, %f, veh: %d",
                  ac_x - ACVehInfo[vehicleid][acPosX], ac_y - ACVehInfo[vehicleid][acPosY], ac_zDiff, vehicleid);
               #endif
               #if defined OnCheatDetected
                  ac_KickWithCode(playerid, "", 0, 31, 1);
                  if(ACInfo[playerid][acKicked] > 0) return 0;
                  ACInfo[playerid][acCheatCount][4] = 0;
               #else
                  return ac_KickWithCode(playerid, "", 0, 31, 1);
               #endif
            }
            #if defined OnCheatWarning
               else OnCheatWarning(playerid, "", 0, 31, 1, ACInfo[playerid][acCheatCount][4]);
            #endif
         }
      }
      #if defined VectorSize
      if(ACInfo[playerid][acACAllow][5] &&
      (ac_dist >= 25.0 || ac_dist >= 15.0 && ac_gtc - ACInfo[playerid][acGtc][15] > ac_gpp) &&
      ac_dist - ACVehInfo[vehicleid][acPosDiff] > (ac_dist / 3.0) * 1.6 &&
      (ACVehInfo[vehicleid][acPosZ] >= -45.0 || VectorSize(ac_x - ACVehInfo[vehicleid][acPosX], ac_y - ACVehInfo[vehicleid][acPosY], 0.0) >= 180.0))
      #else
      if(ACInfo[playerid][acACAllow][5] &&
      (ac_dist >= 25.0 || ac_dist >= 15.0 && ac_gtc - ACInfo[playerid][acGtc][15] > ac_gpp) &&
      ac_dist - ACVehInfo[vehicleid][acPosDiff] > (ac_dist / 3.0) * 1.6 &&
      (ACVehInfo[vehicleid][acPosZ] >= -45.0 || floatsqroot(floatpower(ac_x - ACVehInfo[vehicleid][acPosX], 2.0) + floatpower(ac_y - ACVehInfo[vehicleid][acPosY], 2.0)) >= 180.0))
      #endif
      {
         #if defined DEBUG
            printf("[Nex-AC debug] Dist: %f, old pos diff: %f, old pos z: %f, veh: %d, seat: %d, playerid: %d",
            ac_dist, ACVehInfo[vehicleid][acPosDiff], ACVehInfo[vehicleid][acPosZ], vehicleid, passenger_seat, playerid);
         #endif
         #if defined OnCheatDetected
            ac_KickWithCode(playerid, "", 0, 5, 1);
         #endif
         SetVehicleZAngle(vehicleid, ACVehInfo[vehicleid][acZAngle]);
         SetVehiclePos(vehicleid, ACVehInfo[vehicleid][acPosX], ACVehInfo[vehicleid][acPosY], ACVehInfo[vehicleid][acPosZ]);
         return 0;
      }
   #endif
   #undef AC_MAX_FLYHACK_VEH_WARNINGS
   #undef AC_MAX_CARSHOT_WARNINGS
   #if defined ac_OnUnoccupiedVehicleUpdate
      #if defined OnTrailerUpdate
         new ac_a = ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, new_x, new_y, new_z, vel_x, vel_y, vel_z);
      #elseif defined GetServerTickRate
         new ac_a = ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, new_x, new_y, new_z);
      #else
         new ac_a = ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);
      #endif
   #endif
   #if defined OnTrailerUpdate
      #if defined ac_OnUnoccupiedVehicleUpdate
         if(ac_a)
         {
      #endif
         ACVehInfo[vehicleid][acPosDiff] = ac_dist;
         ACVehInfo[vehicleid][acSpeedDiff] = ac_vsp - ACVehInfo[vehicleid][acSpeed];
         ACVehInfo[vehicleid][acSpeed] = ac_vsp;
         ACVehInfo[vehicleid][acPosX] = new_x;
         ACVehInfo[vehicleid][acPosY] = new_y;
         ACVehInfo[vehicleid][acPosZ] = new_z;
         ACVehInfo[vehicleid][acVelX] = vel_x;
         ACVehInfo[vehicleid][acVelY] = vel_y;
         ACVehInfo[vehicleid][acVelZ] = vel_z;
      #if defined ac_OnUnoccupiedVehicleUpdate
         }
      #endif
   #elseif defined GetServerTickRate
      #if defined ac_OnUnoccupiedVehicleUpdate
         if(ac_a)
         {
      #endif
         ACVehInfo[vehicleid][acPosDiff] = ac_dist;
         ACVehInfo[vehicleid][acPosX] = new_x;
         ACVehInfo[vehicleid][acPosY] = new_y;
         ACVehInfo[vehicleid][acPosZ] = new_z;
      #if defined ac_OnUnoccupiedVehicleUpdate
         }
      #endif
   #else
      GetVehicleZAngle(vehicleid, ACVehInfo[vehicleid][acZAngle]);
      ACVehInfo[vehicleid][acPosDiff] = ac_dist;
      ACVehInfo[vehicleid][acPosX] = ac_x;
      ACVehInfo[vehicleid][acPosY] = ac_y;
      ACVehInfo[vehicleid][acPosZ] = ac_z;
   #endif
   #if defined ac_OnUnoccupiedVehicleUpdate
      return ac_a;
   #else
      return 1;
   #endif
}

#if defined _ALS_OnUnoccupiedVehicleUpdate
   #undef OnUnoccupiedVehicleUpdate
#else
   #define _ALS_OnUnoccupiedVehicleUpdate
#endif
#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 [/pawn]



To je deo skripet iz Nex Anticheata probao sam da ga ubacim u mod
Probao sam da update streamer, YSI, samp-stdlib, pawn-stdlib i idalje baca isti error ne znam sta vise moze da bude



Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log)://
Slika/video ingame problema(obavezno ako je ingame problem)://
Poslednja Izmena: Jul 07, 2022, 15:17:25 POSLE PODNE od Gladiator99012