27.05.2015, 13:14
Hey all,
I'm trying to make a new function for may gamemode and when compile, my function gives me this error:
there is the function
Can anyone help me, please?
I'm trying to make a new function for may gamemode and when compile, my function gives me this error:
Код:
D:\Program Files\Rockstar Games\GTA San Andreas\server\pawno\include\bgedition.inc(203) : error 008: must be a constant expression; assumed zero
Код:
196 stock DatabaseTable(connection, action[], tbname[], string[]) { 197 new query[1500], bool:Action = false; 198 if(strfind(action, "create", true)) { 199 Action = true; 200 mysql_format(connection, query, sizeof(query), "CREATE TABLE IF NOT EXISTS `%s`(%s)", tbname, string); 201 mysql_tquery(connection, query, "", ""); 202 } 203 #if Action == false 204 #error DatabaseTable: The action is invalid! 205 #endif 206 return 1; 207 }