Don't send to compile
#1

welcome
Got a problem when I compile it gives me do not send
and after that line is where da warning

C:\Users\Wakee\Desktop\SEss5.pwn(956) : warning 208: function with tag result used before definition, forcing reparse

I do not know what this line is 956

Код:
public CPSERVICE_Handler()
{
   for(new var0 = 0; var0 < 500; var0++)
   {
      new Float:var1 = 100000.0;
      new var2 = 0;
      for(new var3 = 1; var3 < 500; var3++)
      {
         if(glob524C[var3])
         {
            new Float:var4 = 0.0;
            var4 = function229C(var0, glob236C[var3][0], glob236C[var3][1], glob236C[var3][2]);
            if(var4 < var1)
            {
               var1 = var4;
               var2 = var3;
            }
         }
      }
      new var3 = var2;
      if(glob236C[var3][4] > function229C(var0, glob236C[var3][0], glob236C[var3][1], glob236C[var3][2]))
      {
         if(glob5A1C[var0] != var3)
         {
            SetPlayerCheckpoint(var0, glob236C[var3][0], glob236C[var3][1], glob236C[var3][2], glob236C[var3][3]);
            glob5A1C[var0] = var3;
         }
      }
      else if(glob5A1C[var0])
      {
         glob5A1C[var0] = 0;
         DisablePlayerCheckpoint(var0);
      }
   }
   return 1;
}

Float:function229C(playerid, Float:arg1, Float:arg2, Float:arg3)
{
   new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0;
   new Float:var3 = 0.0;
   GetPlayerPos(playerid, var0, var1, var2);
   var3 = floatsqroot(floatpower(floatabs(arg1 - var0), 2.0) + floatpower(floatabs(arg2 - var1), 2.0) + floatpower(floatabs(arg3 - var2), 2.0));
   return floatround(var3, 0);
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   if(((newkeys & 1024 && newkeys & -128) || (newkeys & 1024 && newkeys & 128) || (newkeys & 1024 && newkeys & -128) || (newkeys & 1024 && newkeys & 128)) || ((oldkeys & 1024 && newkeys & -128) || (oldkeys & 1024 && newkeys & 128) || (oldkeys & 1024 && newkeys & -128) || (oldkeys & 1024 && newkeys & 128)) || (((newkeys & 1024 && oldkeys & -128) || (newkeys & 1024 && oldkeys & 128) || (newkeys & 1024 && oldkeys & -128) || (newkeys & 1024 && oldkeys & 128)) && GetPlayerState(playerid) == 1))
   {
      glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
   }
   return Walk_OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
}

public WalkAnim(playerid)
{
   new var0 = 0, var1 = 0, var2 = 0;
   GetPlayerKeys(playerid, var0, var1, var2);
   if(function574C(playerid) == 1)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WALK_player", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 2)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WALK_civi", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 3)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WALK_gang1", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 4)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WALK_gang2", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 5)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WALK_old", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 6)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WALK_fatold", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 7)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WALK_fat", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 8)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WOMAN_walknorm", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 9)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WOMAN_walkbusy", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 10)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WOMAN_walkpro", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 11)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WOMAN_walksexy", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 12)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "WALK_drunk", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   else if(function574C(playerid) == 13)
   {
      if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
      {
         KillTimer(glob61EC[playerid]);
         ApplyAnimation(playerid, "PED", "Walk_Wuzi", 4.0999, 1, 1, 1, 1, 1, 0);
         glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
      }
      else
      {
         KillTimer(glob61EC[playerid]);
      }
   }
   return 1;
}

function5710(arg0, arg1)
{
   glob69BC[arg0] = arg1;
   return 0;
}

function574C(arg0)
{
   return glob69BC[arg0];
}
Reply
#2

It simply means that the function is used in the code before it's read by the compiler. You should define it as a stock function:

pawn Код:
stock Float:function229C(playerid, Float:arg1, Float:arg2, Float:arg3)
{
   new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0;
   new Float:var3 = 0.0;
   GetPlayerPos(playerid, var0, var1, var2);
   var3 = floatsqroot(floatpower(floatabs(arg1 - var0), 2.0) + floatpower(floatabs(arg2 - var1), 2.0) + floatpower(floatabs(arg3 - var2), 2.0));
   return floatround(var3, 0);
}
Reply
#3

I smell a de-amx ...
Reply
#4

it's a DE-AMX
Reply
#5

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
It simply means that the function is used in the code before it's read by the compiler. You should define it as a stock function:

pawn Код:
stock Float:function229C(playerid, Float:arg1, Float:arg2, Float:arg3)
{
   new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0;
   new Float:var3 = 0.0;
   GetPlayerPos(playerid, var0, var1, var2);
   var3 = floatsqroot(floatpower(floatabs(arg1 - var0), 2.0) + floatpower(floatabs(arg2 - var1), 2.0) + floatpower(floatabs(arg3 - var2), 2.0));
   return floatround(var3, 0);
}
Do not good, everything is giving me error, some have other opinions?
Reply
#6

Quote:
Originally Posted by DicuD
Посмотреть сообщение
Do not good, everything is giving me error, some have other opinions?
Well I'm just helping the warning you have, I can't help with errors you don't show.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)