Jump to content

[SQL]


X-SHADOW

Recommended Posts

Posted

Hello i have A GameMode but it's on SQL who do i set SQL so the gamemod works ?

and the SQL on the hosted server or the gameMode files ?

If there is an Example or video for SQL Setup show me please

Thank's

My ingame nickname : Ops!

-DeathMatch GameMode By Ops! : 5%

Posted

Of what game mode are you talking about?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

it's GangWars By Jayz

the Group system it's on SQL

and also the functions how to Work on SQL ?

My ingame nickname : Ops!

-DeathMatch GameMode By Ops! : 5%

Posted

Do you mean SQL or MySQL?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

is this SQL Or MySQL ?

local connection = executeSQLQuery ( "CREATE TABLE IF NOT EXISTS gangs ( gangName TEXT, leader TEXT, color TEXT )" ) 
  
--[[ GANG SYSTEM ]] 
  
local cost = 20000 
local maxStr = 20 
  
function gangIsLeader ( uPlayer, uTeam ) 
    local select = executeSQLQuery ( "SELECT leader FROM gangs WHERE gangName = '" .. uTeam .. "' " ); 
    if ( select[1]["leader"] == uPlayer ) then 
        return true; 
    else 
        return false; 
    end 
end 
  
function gangSetLeader ( uTeam, uPlayer ) 
    executeSQLQuery ( "UPDATE gangs SET leader = '" .. uPlayer .. "' WHERE gangName = '" .. uTeam .. "' ") 
    return true 
end 

My ingame nickname : Ops!

-DeathMatch GameMode By Ops! : 5%

Posted
is this SQL Or MySQL ?
local connection = executeSQLQuery ( "CREATE TABLE IF NOT EXISTS gangs ( gangName TEXT, leader TEXT, color TEXT )" ) 
  
--[[ GANG SYSTEM ]] 
  
local cost = 20000 
local maxStr = 20 
  
function gangIsLeader ( uPlayer, uTeam ) 
    local select = executeSQLQuery ( "SELECT leader FROM gangs WHERE gangName = '" .. uTeam .. "' " ); 
    if ( select[1]["leader"] == uPlayer ) then 
        return true; 
    else 
        return false; 
    end 
end 
  
function gangSetLeader ( uTeam, uPlayer ) 
    executeSQLQuery ( "UPDATE gangs SET leader = '" .. uPlayer .. "' WHERE gangName = '" .. uTeam .. "' ") 
    return true 
end 

That'S SQL.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...