SA-MP Forums Archive
Pawn Compiler Library stopped working - 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: Pawn Compiler Library stopped working (/showthread.php?tid=591071)



Pawn Compiler Library stopped working - garotin - 07.10.2015

Good afternoon, I use this code
http://pastebin.com/0yqmXPQG

and it appeared that the Pawn Compiler Library stopped working...
Does anyone have any suggestions of what?


Re: Pawn Compiler Library stopped working - Dusan01 - 07.10.2015

i just tested that code, and my compiler didnt crash, works perfect..


Re: Pawn Compiler Library stopped working - AbyssMorgan - 07.10.2015

Код:
isEmail(email[])
{
    if (!email[0]) return false;
 
    new
        len = strlen(email),
        arroba = 0,
        ponto = 0;
 
    for(arroba = 0 ; arroba < len; arroba++) {
        if(!(email[arroba] - 64)) {
            for( ponto = arroba; ponto < len; ponto++) {
                if(!(email[ponto] - 46)) {
                    break;
                }
            }
            break;
        }
    }
    return (arroba + 1 < ponto < len && ponto && arroba); //not fixed
}
syntax looks 'for' incorrectly

or
return (arroba + 1 < ponto < len && ponto && arroba);

should return data type -inf, ..., -1, 0, 1, 2, ..., inf or "a", "abc"

and with you it looks like the condition "if"


AW: Re: Pawn Compiler Library stopped working - Kaliber - 07.10.2015

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
syntax looks 'for' incorrectly

or
return (arroba + 1 < ponto < len && ponto && arroba);

should return data type -inf, ..., -1, 0, 1, 2, ..., inf or "a", "abc"

and with you it looks like the condition "if"
Dude..this is Bullshit.

You should better inform you.

PHP код:
return (xxx); //this can only return 1 or 0 ...if the condition is true, then 1 else 0.
//And you can even write:
for( ;; )
{
   
//This would be an endless Loop

So the code is write..i think he just missed a bracket


Re: Pawn Compiler Library stopped working - Ahmad45123 - 07.10.2015

Try using latest Zeex compiler.