[Ajuda] OnPlayerConnect
#4

Tente parar de usar alguma include ou plugin e faзa o teste vai fazendo isto que talvez vocк encontre qual o plugin ou include que й o problema.

Veja tambйm se da o problema criando um novo script um FS e Gm e carregando as mesmas includes e plugins se der o mesmo problema й mais fбcil de achar qual include ou plugin que й o problema.

Outra alternativa й a seguinte:

GM:
pawn Код:
public OnPlayerConnect(playerid)
{
    CallRemoteFunction("Gambiarra_OnPlayerConnect", "d", playerid);
    // outra maneira
    CallRemoteFunction("OnPlayerConnect", "d", playerid);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    CallRemoteFunction("Gambiarra_OnPlayerDisconnect", "dd", playerid, reason);
    // outra maneira
    CallRemoteFunction("OnPlayerDisconnect", "dd", playerid, reason);
    return 1;
}
FS:
pawn Код:
forward Gambiarra_OnPlayerConnect(id);

forward Gambiarra_OnPlayerDisconnect(id, r);

public Gambiarra_OnPlayerConnect(id) return OnPlayerConnect(id);

public Gambiarra_OnPlayerDisconnect(id, r) return OnPlayerDisconnect(id, r);

public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}
Nгo sei se vai funcionar.
Reply


Messages In This Thread
OnPlayerConnect - by Locky_ - 25.01.2015, 02:24
Re: OnPlayerConnect - by MultiKill - 25.01.2015, 02:37
Re: OnPlayerConnect - by Locky_ - 25.01.2015, 02:41
Re: OnPlayerConnect - by MultiKill - 25.01.2015, 03:21
Re: OnPlayerConnect - by Locky_ - 25.01.2015, 03:25
Re: OnPlayerConnect - by PT - 25.01.2015, 08:09
Re: OnPlayerConnect - by n0minal - 25.01.2015, 13:56
Re: OnPlayerConnect - by Locky_ - 26.01.2015, 15:19
Re: OnPlayerConnect - by PT - 26.01.2015, 19:12
Re: OnPlayerConnect - by WLSF - 26.01.2015, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)