31.01.2018, 21:49
Quote:
Well i need to pull the variables from the enum and with them create table.
|
PHP код:
public OnGameModeInit()
{
SQL::Connect(mysql_host, mysql_user, mysql_pass, mysql_db);
if(!SQL::ExistsTable(SQL_PLAYERS_TABLE))
{
new handle = SQL::Open(SQL::CREATE, SQL_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);
}
}