player login problem
#1

Unless you are a character does not only smooth down their access logs in the same way.
If the wrong password will not allow you to write.
sorry bad english
Код:
  if(dialogid == DIALOG_LOGIN)
    	{
 			    new File[128], PW[64], WPW[MAX_PLAYERS];
                format(File, sizeof(File), "User/%s.ini", NameRe(playerid));

                if(!response) Kick(playerid);

                format(PW, 64, "%s", dini_Get(File, "Password"));

                if(!strcmp(inputtext, PW, false))
                {
                        SendClientMessage(playerid, COLOR_GREEN, "Logged in!");
						Load(playerid);
                 //      	SetSpawnInfo(playerid, 0, pInfo[playerid][pSkin],pInfo[playerid][pX], pInfo[playerid][pY], pInfo[playerid][pZ], pInfo[playerid][pA], 0, 0, 0, 0, 0, 0);
                        SpawnPlayer(playerid);
                }
                else
                {
                        WPW[playerid] ++;

                        SendClientMessage(playerid, COLOR_RED, "Rossz jelszу!");

                        if(WPW[playerid] == 3) return SendClientMessage(playerid, COLOR_RED, "3x sikertelen bejelentkezйs! Kilettйl kickelve!"), Kick(playerid);

                        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Bejelentkezйs", "Нrd a helyes jelszуt:", "Mehet", "Mйgsem");

                }
		}
Reply
#2

Please specify more closely what you need, it's hard to understand you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)