Server closed the connection
#4

It's because the user is already registered. See this.
pawn Код:
else
{
    SendClientMessage(playerid, COLOR_WHITE, "Contul deja exista in baza de date.");
    KickEx(playerid);
}
I've also noticed a bug. In fact if you type 31 or more characters to register, the server will still call OnPlayerRegister function.

pawn Код:
if(strlen(inputtext) >= 31)
{
    SendClientMessage(playerid, COLOR_WHITE, "Password is too long (30 Chars max).");
    ShowPlayerDialog(playerid,37,DIALOG_STYLE_PASSWORD,"Server Account","Nu exista un alt cont cu acest nume.Creaza un cont folosind o parola mai jos\nVa rugam scrieti parola !","Register", "Next");
    return 1;
}
Change the return to
pawn Код:
return 0;
Reply


Messages In This Thread
Server closed the connection - by DonBonanno - 13.01.2014, 19:40
Re: Server closed the connection - by MatriXgaMer - 13.01.2014, 20:53
Re: Server closed the connection - by DonBonanno - 13.01.2014, 21:25
AW: Server closed the connection - by Skimmer - 13.01.2014, 21:52
Re: Server closed the connection - by DonBonanno - 14.01.2014, 17:32
Re: Server closed the connection - by DonBonanno - 14.01.2014, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)