[Ajuda] GetServerPort
#3

Quote:
Originally Posted by rjjj
Посмотреть сообщение
Veja o exemplo da SA-MP Wiki sobre a funзгo GetServerVarAsInt :



https://sampwiki.blast.hk/wiki/GetServerVarAsInt



Com o retorno sendo um tipo integral, vocк poderб comparб-lo pelo operador !=.



Espero ter ajudado .
Muito obrigado +rep


Se nгo for abusar teria como me ajudar na verificaзгo de IP, pq nгo ta pegando?
Код:
    // ip
	#define IP_PERMITIDO "127.0.0.1"
    new SERVER_IP[16];
    GetServerVarAsString("bind", SERVER_IP, sizeof SERVER_IP);
    if(strcmp(SERVER_IP,IP_PERMITIDO) || !strlen(SERVER_IP)) return CloseServerProtection();
Reply


Messages In This Thread
GetServerPort - by pdonald - 23.07.2017, 19:16
Re: GetServerPort - by rjjj - 23.07.2017, 19:24
Re: GetServerPort - by pdonald - 23.07.2017, 20:58
Re: GetServerPort - by RodrigoMSR - 23.07.2017, 21:07
Re: GetServerPort - by pdonald - 23.07.2017, 23:09
Re: GetServerPort - by testi_man - 23.07.2017, 23:17
Re: GetServerPort - by rjjj - 24.07.2017, 01:26
Re: GetServerPort - by F1N4L - 24.07.2017, 16:51
Re: GetServerPort - by rjjj - 24.07.2017, 20:52
Re: GetServerPort - by pdonald - 29.07.2017, 19:17

Forum Jump:


Users browsing this thread: 2 Guest(s)