08.12.2013, 15:52
Hi all.
I've a big fuckin' problem.
A player makes account on my server, then he disconnect. When he try to login on my server, he receive this message: "This account already exist!"
Code:
Pls help.
@ Sorry for my bad english, i'm from Romania.
I've a big fuckin' problem.
A player makes account on my server, then he disconnect. When he try to login on my server, he receive this message: "This account already exist!"
Code:
Код:
if(dialogid == 12345) { if(strlen(inputtext)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Users/%s.ini", sendername); new File: hFile = fopen(string, io_read); if (hFile) { SendClientMessage(playerid, COLOR_YELLOW, "* This name already exist!"); fclose(hFile); return 1; } new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); OnPlayerRegister(playerid,tmppass); } else { new regstring[128]; new regname[64]; GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),"{FFFFFF}Welcome, {AA3333}%s \n \n{32CD32}Type a password:",regname); ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Register","Exit"); } } }
@ Sorry for my bad english, i'm from Romania.