SA-MP Forums Archive
How to read y_ini file? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to read y_ini file? (/showthread.php?tid=575049)



How to read y_ini file? - baba1234 - 23.05.2015

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.