Why this won't work?
#1

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.
PHP код:
CMD:factions(playeridparams[])
{
    new 
Query[256];
    new 
DBResult:Result;
    
format(Querysizeof(Query), "SELECT 'Name' FROM `Faction`");
    
Result db_query(DatabaseQuery);
     if(
db_num_rows(Result))
      {
           new 
Field[30];
           
db_get_field_assoc(Result#Name, Field, 30);
           
printf("%s",Field);
    }
    return 
1;

EDIT:I used printf just in case to check if it appears on console or not
Reply


Messages In This Thread
Why this won't work? - by StrikerZ - 31.10.2016, 11:11
Re: Why this won't work? - by Konstantinos - 31.10.2016, 12:27
Re: Why this won't work? - by StrikerZ - 31.10.2016, 12:35
Re: Why this won't work? - by Logic_ - 31.10.2016, 12:36
Re: Why this won't work? - by StrikerZ - 31.10.2016, 12:39
Re: Why this won't work? - by Logic_ - 31.10.2016, 12:43
Re: Why this won't work? - by Konstantinos - 31.10.2016, 12:44
Re: Why this won't work? - by StrikerZ - 31.10.2016, 12:45
Re: Why this won't work? - by SyS - 31.10.2016, 12:48
Re: Why this won't work? - by StrikerZ - 31.10.2016, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)