SA-MP Forums Archive
race filterscrip?? , asked. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: race filterscrip?? , asked. (/showthread.php?tid=379097)



[edit] error in race code - pascalboy - 20.09.2012

hello,

i am looking for a good race script but by all the scripts you need to start him....
Have somebody a good filterscript that automatic is and with no admin help and random a race start and if the race Finnish, he a new race random load. with a build thing in game ... and he work in another interiur i think when you join it it is a empty map.

like this ;p :


please help, i give you rep or i can help you ;p

gr pascalboy


Re: race filterscrip?? , asked. - RedJohn - 20.09.2012

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

One of the best.


Re: race filterscrip?? , asked. - Red_Dragon. - 20.09.2012

If you need a filterscript, go search in the filterscripts section not here, and thanks


Re: race filterscrip?? , asked. - pascalboy - 20.09.2012

i have this error now:

Код:
C:\Users\pascal\Documents\server\filterscripts\rRace.pwn(50) : error 017: undefined symbol "ret_memcpy"
C:\Users\pascal\Documents\server\filterscripts\rRace.pwn(616) : error 017: undefined symbol "isNumeric"



Re: race filterscrip?? , asked. - Danyal - 20.09.2012

Quote:
Originally Posted by pascalboy
Посмотреть сообщение
i have this error now:

Код:
C:\Users\pascal\Documents\server\filterscripts\rRace.pwn(50) : error 017: undefined symbol "ret_memcpy"
C:\Users\pascal\Documents\server\filterscripts\rRace.pwn(616) : error 017: undefined symbol "isNumeric"
pawn Код:
stock IsNumeric(const string[]) //By Jan "DracoBlue" Schьtze (edited by Gabriel "Larcius" Cordes
{
    new length=strlen(string);
    if(length==0)
    {
        return 0;
    }
    for (new i=0; i<length; i++)
    {
        if (!((string[i] <= '9' && string[i] >= '0') || (i==0 && (string[i]=='-' || string[i]=='+'))))
        {
            return false;
        }
    }
    return 0;
}

stock ret_memcpy(source[],index=0,numbytes) {
    new tmp[MAX_STRING];
    new i=0;
    tmp[0]=0;
    if (index>=strlen(source)) return tmp;
    if (numbytes+index>=strlen(source)) numbytes=strlen(source)-index;
    if (numbytes<=0) return tmp;
    for (i=index;i<numbytes+index;i++) {
        tmp[i-index]=source[i];
        if (source[i]==0) return tmp;
    }
    tmp[numbytes]=0;
    return tmp;
}



Re: race filterscrip?? , asked. - pascalboy - 20.09.2012

how and where can i put this on witch line?
Can you uploud it here please: http://www.solidfiles.com/# a full working .pwn please i am a bad with error's ;p


gr pascal


Re: race filterscrip?? , asked. - Danyal - 21.09.2012

Quote:
Originally Posted by pascalboy
Посмотреть сообщение
how and where can i put this on witch line?
Can you uploud it here please: http://www.solidfiles.com/# a full working .pwn please i am a bad with error's ;p


gr pascal
put these at the end of the script


Re: race filterscrip?? , asked. - [HK]Ryder[AN] - 21.09.2012

PAWN is case sensetive
change
pawn Код:
stock IsNumeric(const string[]) //By Jan "DracoBlue" Schьtze (edited by Gabriel "Larcius" Cordes
{
    new length=strlen(string);
    if(length==0)
    {
        return 0;
    }
    for (new i=0; i<length; i++)
    {
        if (!((string[i] <= '9' && string[i] >= '0') || (i==0 && (string[i]=='-' || string[i]=='+'))))
        {
            return false;
        }
    }
    return 0;
}
to
pawn Код:
stock isNumeric(const string[]) //By Jan "DracoBlue" Schьtze (edited by Gabriel "Larcius" Cordes
{
    new length=strlen(string);
    if(length==0)
    {
        return 0;
    }
    for (new i=0; i<length; i++)
    {
        if (!((string[i] <= '9' && string[i] >= '0') || (i==0 && (string[i]=='-' || string[i]=='+'))))
        {
            return false;
        }
    }
    return 0;
}



Re: race filterscrip?? , asked. - pascalboy - 21.09.2012

thanks its working i going to try it...

[edit] it workis rep+ for you all