SA-MP Forums Archive
Issue - 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: Issue (/showthread.php?tid=392961)



Issue - Eugene. - 16.11.2012

I have a big problem. ID 24-25-26 is completly bugged. They don't have any access to anything. Player banned can join on the server if they are ID 24-25-26 and more things. They don't recevie anything and they just spawn themself without register. Plus I am not able to kick them, it says Invalid Player ID.


Re: Issue - [HK]Ryder[AN] - 16.11.2012

is there #undef MAX_PLAYERS
#define MAX_PLAYERS 23 somewhere in your script?


Re: Issue - Eugene. - 16.11.2012

No.
#undefine MAX_PLAYERS
#define MAX_PLAYERS 30


Re: Issue - Konstantinos - 16.11.2012

Reset your variables in OnPlayerConnect & OnPlayerDisconnect, also in OnGameModeInit & OnGameModeExit.


Re: Issue - Eugene. - 16.11.2012

What do you mean?


Re: Issue - SKAzini - 18.11.2012

Reset variables with:
pawn Code:
public OnPlayerConnect(playerid) {
    MyEpicInt[playerid] = 0;
    MyEpicBoolean[playerid] = false;
    format(MyEpicString[playerid], sizeof(128), "");
}



Re: Issue - Eugene. - 22.11.2012

Already did. Same thing.