31.10.2016, 11:11
Hi i'm using SQLite. Why this command not working? The purpose of it was to select all the strings in the 'Name' column and show on player's screen.
EDIT:I used printf just in case to check if it appears on console or not
PHP код:
CMD:factions(playerid, params[])
{
new Query[256];
new DBResult:Result;
format(Query, sizeof(Query), "SELECT 'Name' FROM `Faction`");
Result = db_query(Database, Query);
if(db_num_rows(Result))
{
new Field[30];
db_get_field_assoc(Result, #Name, Field, 30);
printf("%s",Field);
}
return 1;
}