[Ajuda] GetServerPort
#1

Tava tentando proteger meu GM de algumas formas, mas encontrei dificuldade em pegar a porta usada no server..

Pra fazer algo assim:
Код:
    #define PORTA_PERMITIDA 7777
    if(GetServerPort() != PORTA_PERMITIDA) return CloseServerProtection();
To usando assim (achei aqui no fуrum):
Код:
stock GetServerPort() {
    static Porta[64];
    return (GetServerVarAsString("port", Porta, 64), Porta);
}
Mas ta retornando esse erro:
Код:
error 033: array must be indexed (variable "GetServerPort")
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: 1 Guest(s)