//DATA SAVING
public MySQLx_Init()
{
new szTables[2048];
new pos;
pos += formatex(szTables[pos], charsmax(szTables)-pos, "CREATE TABLE IF NOT EXISTS `XpTable` (`player_id` varchar(32) NOT NULL, `player_name` varchar(32) NOT NULL,`player_total_xp` int(16) NOT NULL,`player_class_assault_xp` int(16) NOT NULL,");
pos += formatex(szTables[pos], charsmax(szTables)-pos, "`player_class_specops_xp` int(16) NOT NULL,`player_class_sniper_xp` int(16) NOT NULL,`player_class_engineer_xp` int(16) NOT NULL,`player_class_medic_xp` int(16) NOT NULL,`player_class_support_xp` int(16) NOT NULL,PRIMARY KEY(`player_id`));");
pos += formatex(szTables[pos], charsmax(szTables)-pos, "CREATE TABLE IF NOT EXISTS `KillTable` (`player_id` varchar(32) NOT NULL, `player_kills_total` int(16) NOT NULL,`player_class_assault_kills` int(16) NOT NULL, `player_class_specops_kills` int(16) NOT NULL, ");
pos += formatex(szTables[pos], charsmax(szTables)-pos, "`player_class_sniper_kills` int(16) NOT NULL, `player_class_engineer_kills` int(16) NOT NULL, `player_class_medic_kills` int(16) NOT NULL, `player_class_support_kills` int(16) NOT NULL,PRIMARY KEY(`player_id`));");
pos += formatex(szTables[pos], charsmax(szTables)-pos, "CREATE TABLE IF NOT EXISTS `DeathTable` (`player_id` varchar(32) NOT NULL, `player_deaths_total` int(16) NOT NULL, `player_class_assault_deaths` int(16) NOT NULL, ");
pos += formatex(szTables[pos], charsmax(szTables)-pos, "`player_class_specops_deaths` int(16) NOT NULL, `player_class_sniper_deaths` int(16) NOT NULL, `player_class_engineer_deaths` int(16) NOT NULL, `player_class_medic_deaths` int(16) NOT NULL, `player_class_support_deaths` int(16) NOT NULL,PRIMARY KEY(`player_id`));");
new szHost[64], szUser[32], szPass[32], szDB[128];
get_cvar_string("amx_sql_host", szHost, 127,0,0,1(szHost));
get_cvar_string("amx_sql_user", szUser, root(szUser));
get_cvar_string("amx_sql_pass", szPass, (szPass));
get_cvar_string("amx_sql_db", szDB, amx(szDB));
g_hTuple = SQL_MakeDbTuple(szHost, szUser, szPass, szDB);
SQL_ThreadQuery( g_hTuple, "QueryCreateTable", szTables);
}
}
Przy próbie kompilacji pojawiają mi się takie o to błędy
Error: Number of arguments does not match definition on line 2228
Warning: Expression has no effect on line 2228
Error: Expected token: ";", but found ")" on line 2228
Error: Invalid expression, assumed zero on line 2228
Error: Too many error messages on one line on line 2228
Error: Number of arguments does not match definition on line 2228
Warning: Expression has no effect on line 2228
Error: Undefined symbol "root" on line 2229
Error: Argument type mismatch (argument 3) on line 2230
Error: Undefined symbol "amx" on line 2231
Compilation aborted.
8 Errors.
I tutaj pojawia się moja prośba czy mógłby ktoś w wolnej chwili zobaczyć co jest nie tak i ewentualnie spróbować naprawić? Byłbym bardzo wdzięczny za pomoc a w załączniku daje sma pluginu.
Załączone pliki
Użytkownik DJTSUBA edytował ten post 14.04.2012 11:18