Enumerators Variables
#8

Quote:
Originally Posted by vikiopp
Посмотреть сообщение
Well i need to pull the variables from the enum and with them create table.
PHP код:
public OnGameModeInit()
{
    
SQL::Connect(mysql_hostmysql_usermysql_passmysql_db);
    if(!
SQL::ExistsTable(SQL_PLAYERS_TABLE))
    {
        new 
handle SQL::Open(SQL::CREATESQL_PLAYERS_TABLE); 
        
SQL::AddTableColumn(handle"pKills"SQL_TYPE_INT);
        
SQL::AddTableColumn(handle"pDeaths"SQL_TYPE_INT);
        
SQL::AddTableColumn(handle"pMuted"SQL_TYPE_INT);
        
SQL::AddTableColumn(handle"pSkin"SQL_TYPE_INT);
        
SQL::Close(handle);
    }

That's what i use to create a new table when i start my gamemode, i am using an include called easymysql though. I just posted this as it might be helpful
Reply


Messages In This Thread
Enumerators Variables - by vikiopp - 31.01.2018, 21:37
Re: Enumerators Variables - by solstice_ - 31.01.2018, 21:39
Re: Enumerators Variables - by vikiopp - 31.01.2018, 21:41
Re: Enumerators Variables - by Nizarh - 31.01.2018, 21:42
Re: Enumerators Variables - by solstice_ - 31.01.2018, 21:43
Re: Enumerators Variables - by vikiopp - 31.01.2018, 21:43
Re: Enumerators Variables - by vikiopp - 31.01.2018, 21:45
Re: Enumerators Variables - by solstice_ - 31.01.2018, 21:49
Re: Enumerators Variables - by vikiopp - 31.01.2018, 21:52
Re: Enumerators Variables - by vikiopp - 01.02.2018, 12:38

Forum Jump:


Users browsing this thread: 2 Guest(s)