Server Closed Connection[HELP] - 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: Server Closed Connection[HELP] (
/showthread.php?tid=650021)
Server Closed Connection[HELP] -
Osamakurdi - 19.02.2018
I have this code:
Код:
if(dialogid == DIALOG_LOGIN)
{
if(response)
{
new file[256], pname[MAX_PLAYER_NAME], pass[256];
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), "Accounts/%s.ini", pname);
pass = dini_Get(file, "Password");
if(strcmp(inputtext, pass, false )) return SendClientMessage(playerid, -1, "Wrong Password!");
LoadPlayerInfo(playerid);
}
}
stock:
PHP код:
stock LoadPlayerInfo(playerid)
{
new file[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), "Accounts/%s.ini", pname);
GivePlayerMoney(playerid,dini_Int(file, "Money"));
SetPlayerScore(playerid, dini_Int(file, "Score"));
PInfo[playerid][Adminlevel] = dini_Int(file, "Adminlevel");
SetPlayerPos(playerid, dini_Float(file, "Locx"), dini_Float(file, "Locy"), dini_Float(file, "Locz"));
return true;
}
INGAME:
when i press enter on dialog it just kick or idk its gives me Server Closed Connection.
Re: Server Closed Connection[HELP] -
Osamakurdi - 19.02.2018
SOLVED.