SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   How to select a specific sql id (https://forum.sa-mp.com/showthread.php?t=670590)

EAGLE 11/11/2019 09:45 PM

How to select a specific sql id
 
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

WalkZ 11/11/2019 10:35 PM

Re: How to select a specific sql id
 
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");
    } 



All times are GMT. The time now is 05:59 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.