SQLite ... reading strings from database!
#1

Hi there!

I don't know how to read strings for exemple "Testing" in SQLite database.

Exemple:
When player login:
Код:
...
db_get_field_assoc( Result, "Column1", Field, 128 );
P_DATA[ playerid ][ Column1String ] = strlen( Field );
And now using Column1String in a dialog:
Код:
CMD:test( playerid, params[ ] )
{
new str[ 128 ];
format( str, 128, sizeof( str ), "%s", P_DATA[ playerid ][ Column1String ] );
ShowPlayerDialog( playerid ... );
return 1;
}
When i type /test command the dialog is empty...
So ... my question is ... how can i load a string from SQLite database and show it on a dialog?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)