[AYUDA] no entiendo :S
#3

Bendito seas tъ me respondiste , se me quito algunos errores pero todavнa tengo errores, їComo defino el "UbicaciуnArchivo"?

y el proxdetector me imagino que estй de abajo

Код:
public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
{
   if(IsPlayerConnected(playerid))
   {
      new Float:posx, Float:posy, Float:posz;
      new Float:oldposx, Float:oldposy, Float:oldposz;
      new Float:tempposx, Float:tempposy, Float:tempposz;
      GetPlayerPos(playerid, oldposx, oldposy, oldposz);
      foreach(Player,i)//cambiamos el loop a foreach :D
      {
         if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
         {
            if(!BigEar[i])
            {
               GetPlayerPos(i, posx, posy, posz);
               tempposx = (oldposx -posx);
               tempposy = (oldposy -posy);
               tempposz = (oldposz -posz);
               if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
               {
                  SendClientMessage(i, col1, string);
               }
               else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
               {
                  SendClientMessage(i, col2, string);
               }
               else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
               {
                  SendClientMessage(i, col3, string);
               }
               else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
               {
                  SendClientMessage(i, col4, string);
               }
               else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
               {
                  SendClientMessage(i, col5, string);
               }
            }
            else
            {
               SendClientMessage(i, col1, string);
            }
         }
      }
   }
Код:
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);//proxdetector, es para que solo usuarios cercanos lean algo...
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(97) : error 017: undefined symbol "UbicacionArchivo"
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(103) : error 017: undefined symbol "UbicacionArchivo"
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(336) : error 017: undefined symbol "UbicacionArchivo"
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(417) : error 029: invalid expression, assumed zero
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(417) : error 017: undefined symbol "UbicacionArchivo"
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(421) : error 090: public functions may not return arrays (symbol "ProxDetector")
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(423) : error 030: compound statement not closed at the end of file (started at line 369)
Reply


Messages In This Thread
[AYUDA] no entiendo :S - by GranaT3 - 28.03.2013, 16:07
Respuesta: [AYUDA] no entiendo :S - by TheChaoz - 28.03.2013, 20:27
Respuesta: [AYUDA] no entiendo :S - by GranaT3 - 28.03.2013, 20:41
Respuesta: [AYUDA] no entiendo :S - by TheChaoz - 28.03.2013, 21:08

Forum Jump:


Users browsing this thread: 1 Guest(s)