SA-MP Forums Archive
[Ajuda] Urgente me ajudem - 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] Urgente me ajudem (/showthread.php?tid=367658)



Urgente me ajudem - Bruno Alves - 10.08.2012

Код:
C:\Documents and Settings\Bruno Alves\Desktop\[TDM]Brasil Top Killers\filterscripts\rRace.pwn(7) : error 017: undefined symbol "ret_memcpy"
C:\Documents and Settings\Bruno Alves\Desktop\[TDM]Brasil Top Killers\filterscripts\rRace.pwn(573) : error 017: undefined symbol "isNumeric"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Estгo nessas linhas:
pawn Код:
#pragma unused \
    ret_memcpy
// e nessa
if(isNumeric(inputtext))



Re: Urgente me ajudem - .FuneraL. - 10.08.2012

pawn Код:
#pragma unused ret_memcpy

stock isNumeric(const string[])
{
  new length=strlen(string);
  if (length==0) return false;
  for (new i = 0; i < length; i++)
  {
    if (
       (string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+')
       || (string[i]=='-' && i!=0)                                            
       || (string[i]=='+' && i!=0)                                          
       ) return false;
  }
  if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
  return true;
}
Espero ter Ajudado