How to read y_ini file?
#1

So I have login register system with clickable textdraws and I have when player click it shows dialog and everything.. Its all good But I need example for the last button thats called Register. If player didnt putted password, gender etc. that he cant click on that last button.

Код:
case DIALOG_REGISTER:
        {
            if(!response) return Kick(playerid);
            if(response)
            {
                if(PlayerInfo[playerid][pGodine] != 0)
                {
                    if(PlayerInfo[playerid][pPorijeklo] != 0)
                    {
                        if(PlayerInfo[playerid][pPass] != 0)
                        {
	                        TogglePlayerSpectating(playerid, 0);
							SetSpawnInfo( playerid, 0, 0, 1714.8339, -1912.6870, 13.5666, 359.9943, 26, 36, 28, 150, 0, 0 );
							SpawnPlayer(playerid);
			                GivePlayerMoney(playerid, 1000);
                        }
                    }
				}

    		}
    		return 1;
        }
So I need something like this if he completed all other dialogs ha can go register if not then he cant.
Reply


Messages In This Thread
How to read y_ini file? - by baba1234 - 23.05.2015, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)