SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 11/11/2019, 10:45 PM   #1
EAGLE
Little Clucker
 
Join Date: Nov 2019
Posts: 18
Reputation: 0
Default 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
EAGLE is offline   Reply With Quote
Old 11/11/2019, 11:35 PM   #2
WalkZ
Big Clucker
 
WalkZ's Avatar
 
Join Date: Oct 2019
Location: Pakistan
Posts: 100
Reputation: 4
Default 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");
    } 
__________________
[EN] Chinatown Freeroam [BETA]
- Different Advanced Deathmatches with Times and Scores
- Different Races
- Different Events
- Gangs (Groves, Ballas, Aztecas, Mafia, Bikers & Triads)
- Drugs with Drug Dealers at Streets
- Hitman Bounty System
- Ammunations, Pizza Stacks, Burger-Shots, Banks
- Jobs (Pizza-Boy, Plumber, Trasher, Bus)
- Money-Bag every 30 minutes
- Reaction Test every 15 minutes
- Daily improving by adding new features and fixing present bugs.
WalkZ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select specific data MYSQL Giannidw Scripting Help 3 21/08/2014 04:14 PM
Specific FightingStyle for specific skin id's Flatz Scripting Help 3 11/01/2014 05:59 PM
If you want to enter a specific vehicle ID, you need a specific skin davelord Scripting Help 9 07/08/2012 02:09 AM
Specific teams get specific abilities, how? Andregood Help Archive 7 15/04/2011 05:08 PM
How can i spawn a specific player in a specific vehicle ? AlbanianGuy Help Archive 8 16/01/2010 08:31 AM


All times are GMT. The time now is 09:13 PM.


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