There's a big bug (0.3.7)
#1

Bug:

public OnPlayerDisconnect(playerid, reason)


If reason == 0 (Timeout/Crash), function not work


So the deletion of vehicles exit the game, causing cloning.
Reply
#2

I didn't understand what you are trying to report. Give us your public OnPlayerDisconnect() script.


Tutorial Wiki: https://sampwiki.blast.hk/wiki/OnPlayerDisconnect
Reply
#3

Its working fine for us, its just probably you. Paste the OnPlayerDisconnect code here.
Reply
#4

But my Server is linux CentOS 6.
Reply
#5

Quote:
Originally Posted by datahans
Посмотреть сообщение
But my Server is linux CentOS 6.
This doesn't matter,

Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
I didn't understand what you are trying to report. Give us your public OnPlayerDisconnect() script.


Tutorial Wiki: https://sampwiki.blast.hk/wiki/OnPlayerDisconnect
Reply
#6

Help me.

Quote:

public OnPlayerDisconnect(playerid, reason)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(!strcmp(name, "InvalidNick", true)) return 1;
if(!strcmp(name, "BannedPlayer", true)) return 1;
if(playerid == MAX_PLAYERS) return 1;

they may be causing
Reply
#7

Quote:
Originally Posted by datahans
Посмотреть сообщение
Help me.




they may be causing
What exactly are you trying to accomplish there...
Reply
#8

Quote:
Originally Posted by datahans
Посмотреть сообщение
Help me.




they may be causing
That piece of code makes absolutely no sense.
Reply
#9

Your script is the problem because there is no known bugs in Disconnect right now.

Show us the ENTIRE OnPlayerDisconnect callback code.
Reply
#10

Quote:
Originally Posted by datahans
Посмотреть сообщение
Help me.




they may be causing
Your code is mess, try this example and tell us if it work!
Example: https://sampwiki.blast.hk/wiki/OnPlayerDisconnect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)