SA-MP Forums Archive
How to select a specific sql id - 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 select a specific sql id (/showthread.php?tid=670590)



How to select a specific sql id - EAGLE - 11.11.2019

Hello, I need to know how I can select a specific sql_id for check is his exist or not

Actually, the command send me "YES it EXISTS", but not in my database

For edit, change position etc..


Code: https://pastebin.com/uizXFDp1


Re: How to select a specific sql id - WalkZ - 11.11.2019

PHP Code:
    if(idjob == -1)
    {
        
SendMessage(playerid, -1"No");
        return 
1;
    }
 
    
SendMessage(playerid, -1"Yes"); 
It should be like this

PHP Code:
    if(idjob == -1)
    {
        
SendMessage(playerid, -1"No");
    }
    else
    {
        
SendMessage(playerid, -1"Yes");
    }