22.12.2011, 12:09
Hi there!
I don't know how to read strings for exemple "Testing" in SQLite database.
Exemple:
When player login:
And now using Column1String in a dialog:
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
?
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 );
Код:
CMD:test( playerid, params[ ] ) { new str[ 128 ]; format( str, 128, sizeof( str ), "%s", P_DATA[ playerid ][ Column1String ] ); ShowPlayerDialog( playerid ... ); return 1; }
So ... my question is ... how can i load a string from SQLite database and show it on a dialog
