26.04.2014, 19:33
My register system is bugged, when i left server and then re-join then dialog appear "you are account registerd please enter a password" i write correct password but dialog still appear and still warn me write correct password
Код:
if(strcmp(pInfo[playerid][Ip], ip, true) == 0) { INI_ParseFile(Path(playerid), "loadaccount_user", .bExtra = true, .extra = playerid); SetPlayerScore(playerid, pInfo[playerid][Score]); GivePlayerCash(playerid, pInfo[playerid][Money]); pInfo[playerid][Logged] = 1; timer[playerid][1] = SetTimerEx("ScoreGive", 1000*60*1, true, "d", playerid); if(pInfo[playerid][Mute] == 1) { GameTextForPlayer(playerid, "~r~Muted!", 2500, 3); SendClientMessage(playerid, COLOR_RED, "You're still mute, Since you leave the server while you're mute!"); MuteTimer[playerid] = SetTimerEx("OnPlayerUnmute", pInfo[playerid][MuteSeconds], false, "d", playerid); } SendClientMessage(playerid, COLOR_ORANGE, "ACCOUNT: Welcome back! You have successfully logged in, Stats Loaded!"); new INI:file = INI_Open(Path(playerid)); GetPlayerIp(playerid, pInfo[playerid][Ip], 16); INI_SetTag(file, "Player's Data"); INI_WriteString(file, "Address", pInfo[playerid][Ip]); INI_Close(file); return 1; } ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, ""yellow"Login", ""white"Welcome back! Looks like this account is registered.\nInsert your password to login to your account", "Login", "Quit"); } else { for(new s=0; s < IpBanned; s++) { if(!strcmp(ips[s], ip, true)) { if(fexist(Path(playerid))) { pInfo[playerid][Banned] = 1; SaveStats(playerid); } for(new x = 0; x < 50; x++) SendClientMessage(playerid, -1, " "); SendClientMessage(playerid, COLOR_RED, "Your IP is banned, You cannot connect!, Please create a ban appeal on the forum!"); timer[playerid][7] = SetTimerEx("Bans", 300, false, "d", playerid); return 1; } } FirstTime[playerid] = 0; ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, ""orange"Register", ""white"Welcome to .:UFS:.United Freeroam Server (0.3z) This account is not registered.\nEnter your own password to create a new account.", "Register", "Quit");