y_ini load.
#1

I have problems with loading user, it doesn't reads the public LoadUser. I tested it with print function.
Код:
FUNC LoadUser_data(playerid,name[],value[])
{
	INI_String("Password", PI[playerid][pPass], 128);
	INI_Int("Level",PI[playerid][pLevel]);
	INI_Int("Exp",PI[playerid][pExp]);
	INI_Int("Pare",PI[playerid][pPare]);
	INI_Int("Admin",PI[playerid][pAdmin]);
	INI_Int("Spol",PI[playerid][pSpol]);
	INI_Int("Godine",PI[playerid][pGodine]);
	INI_Int("Skin",PI[playerid][pSkin]);
	INI_Int("HSoba",PI[playerid][pHsoba]);
	print("Ucitao korisnika");
	return 1;
}
Here is dialog response. I can't figure out where is the problem.
Код:
	if(dialogid == DIALOG_LOGIN)
	{
		if(response)
		{
	 		INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
		  	if(strcmp(inputtext,PI[playerid][pPass], true) == 0)
		  	{
			  	SetSpawnInfo(playerid, 0, 0, 1642.1187,-2334.3650,13.5469, 358.4851, 0, 0, 0, 0, 0, 0);
				SpawnPlayer(playerid);
				dvLog[playerid] = 1;
				dvSCM[playerid] = 0;
				SetPlayerSkin(playerid, PI[playerid][pSkin]);
				for(new i = 1; i < MAX_ADMINA; i++)
				{
				new xd[MAX_PLAYER_NAME];
				GetPlayerName(playerid, xd, sizeof(xd));
	  			if(strcmp(Admin[i][aIme],xd, true) == 0)
		  		{
				dvADM[playerid] = i;
		  		SPD(playerid, DIALOG_ADMLOG, DIALOG_STYLE_INPUT, "ADMIN| LOZINKA", "Upisite vasu admin lozinku kako bi prosli identifikacionu provjeru.", "Unesi", "Cancel");
		  		}
				}
				//
			}
		}
	}
Reply
#2

BUMP!
Reply
#3

BUMP! Come on, somebody?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)