SQL Check - 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: SQL Check (
/showthread.php?tid=550595)
SQL Check -
cyberlord - 13.12.2014
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