13.12.2014, 18:45
Hello guys need your help today , so what i am trying to do hare is my code :
i have enum :
and hare i have my code i am not sure ware to put this code on onplayerspawn or onplayerconnect :
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
i have enum :
Код:
enum pInfo { pTut } new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
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; } }
hare is my database