SQL Check
#1

Hello guys need your help today , so what i am trying to do hare is my code :

i have enum :
Код:
enum pInfo
{
	pTut

}
new PlayerInfo[MAX_PLAYERS][pInfo];
and hare i have my code i am not sure ware to put this code on onplayerspawn or onplayerconnect :

Код:
public OnPlayerSpawn(playerid)
{

    if(IsPlayerConnected(playerid))
	{
	    //TUTORIAL
	    if(PlayerInfo[playerid][pTut] != 1)
	    {
	   
			ShowPlayerDialog(playerid, SEXMENU, DIALOG_STYLE_MSGBOX, "{00C0FF}Gender","{FFFFFF} What Is your Gender ?", "Male", "Female");
			return 1;
	    }

	}
so what do i need , i need to know how to check my sql db to check is ptut is 1 or 0

hare is my database
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)