SA-MP Forums Archive
There's a big bug (0.3.7) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: There's a big bug (0.3.7) (/showthread.php?tid=578832)



There's a big bug (0.3.7) - datahans - 22.06.2015

Bug:

public OnPlayerDisconnect(playerid, reason)


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


So the deletion of vehicles exit the game, causing cloning.


Re: There's a big bug (0.3.7) - Alex Magaсa - 22.06.2015

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


Tutorial Wiki: https://sampwiki.blast.hk/wiki/OnPlayerDisconnect


Re: There's a big bug (0.3.7) - 036 - 22.06.2015

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


Re: There's a big bug (0.3.7) - datahans - 22.06.2015

But my Server is linux CentOS 6.


Re: There's a big bug (0.3.7) - Alex Magaсa - 22.06.2015

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



Re: There's a big bug (0.3.7) - datahans - 23.06.2015

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


Re: There's a big bug (0.3.7) - rymax99 - 23.06.2015

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




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


Re: There's a big bug (0.3.7) - Shetch - 23.06.2015

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




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


Re: There's a big bug (0.3.7) - Sithis - 23.06.2015

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

Show us the ENTIRE OnPlayerDisconnect callback code.


Re: There's a big bug (0.3.7) - Alex Magaсa - 23.06.2015

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