SA-MP Forums Archive
[Ajuda] error 070: rational number support was not enabled - 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] error 070: rational number support was not enabled (/showthread.php?tid=458885)



error 070: rational number support was not enabled - MrPaulistinha - 19.08.2013

Bem.. tava tentando usar uma include mais ela nao compila --'

Erros/Warning's

pawn Код:
C:\Users\Cliente\Desktop\Servidor\....\pawno\mapandreas.pwn(13) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Users\Cliente\Desktop\Servidor\....\pawno\mapandreas.pwn(18) : error 070: rational number support was not enabled
Linha 18:

pawn Код:
stock Float: GetPointZPos(const Float: fX, const Float: fY, &Float: fZ = 0.0) {
Include toda

pawn Код:
#if defined _MapAndreas_Included
        #endinput
#endif

#define _MapAndreas_Included

forward OnGamemodeInit();
public OnGameModeInit()
{
    return 1;
}

stock Float: GetPointZPos(const Float: fX, const Float: fY, &Float: fZ = 0.0) {
        new string[
        if(!((-3000.0 < fX < 3000.0) && (-3000.0 < fY < 3000.0))) {
                return 0.0;
        }
        static
                File: s_hMap
        ;
        if(!s_hMap) {
                s_hMap = fopen("SAfull.hmap", io_read);

                if(!s_hMap) {
                        return 0.0;
                }
        }
        new
                afZ[1]
        ;
        fseek(s_hMap, ((6000 * (-floatround(fY, floatround_tozero) + 3000) + (floatround(fX, floatround_tozero) + 3000)) << 1));
        fblockread(s_hMap, afZ);

        return (fZ = ((afZ[0] >>> 16) * 0.01));
}



Re: error 070: rational number support was not enabled - focaximubh - 19.08.2013

pawn Код:
stock Float: GetPointZPos(const Float: fX, const Float: fY, &Float: fZ = 0.0) {
        new string[
        if(!((-3000.0 < fX < 3000.0) && (-3000.0 < fY < 3000.0))) {
                return 0.0;
        }
        static
Exite um new string[ vazio mude para o nъmero de strings necessбrias '-' ficaria tipo
pawn Код:
new string[124];
Esse foi o ъnico erro assim que eu encontrei pq eu n vo nem tentar analisar a include pq n entendo disso.


Re: error 070: rational number support was not enabled - MrPaulistinha - 19.08.2013

Deu no mesmo...


Re: error 070: rational number support was not enabled - focaximubh - 19.08.2013

pq tu vai nгo no tуpico do plugin MapAndreas e baixa novamente


Re: error 070: rational number support was not enabled - PT - 19.08.2013

ae tens

pawn Код:
/*
        SA-MP MapAndreas Include
        Copyright © 2011-2012 RyDeR`
*/

 
#if defined _MapAndreas_Included
        #endinput
#endif
 
#define _MapAndreas_Included
 
stock Float: GetPointZPos(const Float: fX, const Float: fY, &Float: fZ = 0.0) {
        if(!((-3000.0 < fX < 3000.0) && (-3000.0 < fY < 3000.0))) {
                return 0.0;
        }
        static
                File: s_hMap
        ;
        if(!s_hMap) {
                s_hMap = fopen("SAfull.hmap", io_read);
               
                if(!s_hMap) {
                        return 0.0;
                }
        }
        new
                afZ[1]
        ;
        fseek(s_hMap, ((6000 * (-floatround(fY, floatround_tozero) + 3000) + (floatround(fX, floatround_tozero) + 3000)) << 1));
        fblockread(s_hMap, afZ);
       
        return (fZ = ((afZ[0] >>> 16) * 0.01));
}
topico official

https://sampforum.blast.hk/showthread.php?tid=273263