SA-MP Forums Archive
[AJUDA]Erros - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Erros (/showthread.php?tid=160160)



[AJUDA]Erros - egonzks - 15.07.2010

Alguem ae sabe como corrigir esses erros

C:\Users\Egon\Desktop\GW.pwn(7390) : error 001: expected token: ",", but found "."
C:\Users\Egon\Desktop\GW.pwn(7390) : error 029: invalid expression, assumed zero
C:\Users\Egon\Desktop\GW.pwn(7390) : error 029: invalid expression, assumed zero
C:\Users\Egon\Desktop\GW.pwn(7390) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


pawn Код:
7385   public OnPlayerOpenGate(playerid)
7386   {
7387   if (GetPlayerVirtualWorld(playerid) == 0)
7388     {
7389        new Float:ppx = 0.0, Float:ppy = 0.0, Float:ppz = 0.0; GetPlayerPos(playerid, ppx, ppy, ppz);
7390        if (DistanciaPontos(915.-1252, 939.-1212, ppx, ppy) < 10)           return AbrirFecharSubEBase(playerid, 0); // RAIO PARA BASE DE LAS VENTURAS
7391        else if (DistanciaPontos(2410.-1677, 2440.1654, ppx, ppy) < 10)     return AbrirFecharSubEBase(playerid, 1); // RAIO PARA SUB-BASE DE LAS VENTURAS
7392        else if (DistanciaPontos(-2134.739990, -80.227172, ppx, ppy) < 10)  return AbrirFecharSubEBase(playerid, 2); // RAIO PARA BASE DE SAN FIERRO
7393        else if (DistanciaPontos(-1866.058837, 1375.023803, ppx, ppy) < 10) return AbrirFecharSubEBase(playerid, 3); // RAIO PARA SUB-BASE DE SAN FIERRO
7394        else if (DistanciaPontos(1169.313659, -1720.105834, ppx, ppy) < 10) return AbrirFecharSubEBase(playerid, 4); // RAIO PARA BASE DE LOS SANTOS
7395        else if (DistanciaPontos(1954.432067, -2060.469238, ppx, ppy) < 10) return AbrirFecharSubEBase(playerid, 5); // RAIO PARA SUB-BASE DE LOS SANTOS
7396    }
7397    return 1;
7398 }



Re: [AJUDA]Erros - felipex - 15.07.2010

if (IsPlayerInRangeOfPoint(playerid, 915.-1252, 939.-1212, Floatpx, Floatpy) < 10) // ?


Re: [AJUDA]Erros - felipex - 15.07.2010

Код:
  if (IsPlayerInRangeOfPoint(playerid, 915.-1252, 939.-1212, Float:ppx, Float:ppy) < 10) // ?



Re: [AJUDA]Erros - egonzks - 16.07.2010

Nao da certo isso nao vc viu o erros direito


Re: [AJUDA]Erros - Lucas_Nicolas - 16.07.2010

Код:
7385   public OnPlayerOpenGate(playerid)
7386   {
7387   if (GetPlayerVirtualWorld(playerid) == 0)
7388     {
7389        new Float:ppx = 0.0, Float:ppy = 0.0, Float:ppz = 0.0; GetPlayerPos(playerid, ppx, ppy, ppz);
7390        if (DistanciaPontos(915.-1252, 939.-1212, ppx, ppy) < 10);           return AbrirFecharSubEBase(playerid, 0); // RAIO PARA BASE DE LAS VENTURAS
7391        else if (DistanciaPontos(2410.-1677, 2440.1654, ppx, ppy) < 10)     return AbrirFecharSubEBase(playerid, 1); // RAIO PARA SUB-BASE DE LAS VENTURAS
7392        else if (DistanciaPontos(-2134.739990, -80.227172, ppx, ppy) < 10)  return AbrirFecharSubEBase(playerid, 2); // RAIO PARA BASE DE SAN FIERRO
7393        else if (DistanciaPontos(-1866.058837, 1375.023803, ppx, ppy) < 10) return AbrirFecharSubEBase(playerid, 3); // RAIO PARA SUB-BASE DE SAN FIERRO
7394        else if (DistanciaPontos(1169.313659, -1720.105834, ppx, ppy) < 10) return AbrirFecharSubEBase(playerid, 4); // RAIO PARA BASE DE LOS SANTOS
7395        else if (DistanciaPontos(1954.432067, -2060.469238, ppx, ppy) < 10) return AbrirFecharSubEBase(playerid, 5); // RAIO PARA SUB-BASE DE LOS SANTOS
7396    }
7397    return 1;
7398 }
tenta agora =)