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



Porque? - DannielCooper - 13.09.2013

Olб forum-samp, eu fiz um code aqui, aparentemente que iria funcionar, e estб acontecendo uma aberraзгo da natureza com isso vei. Aparentemente, o code diria que se for diferente da porta :5555, desligaria o servidor automaticamente. Mas aн vem a aberraзгo, todas as portas funcionam, menos a :5555. Porque serб?

pawn Код:
#define PROTECTED_PORT  ":5555"
pawn Код:
if(ServerPort != PROTECTED_PORT)
        {
            print("Este servidor nгo tem a permissгo para usar este gamemode.");
            print("Servidor desligando em 5 segundos");
            SetTimer("Exit",5000,false);
            return 0;
        }
    }



Re: Porque? - Blix - 13.09.2013

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


Re: Porque? - PT - 13.09.2013

Tem certeza disso?

aparentemente o code estar bem feito


Re: Porque? - DannielCooper - 13.09.2013

Quote:
Originally Posted by Blix
Посмотреть сообщение
Meu code й bem mais simples que aquele lб :P

#Edit

Consegui, tentei sem o " = " que havia no code, e funcionou. Acho que й porque no code com isso "!=" dizia diferente ou igual. =P, mais mesmo assim estaria errado. Mais vlw б todos que ajudaram aew.