13.01.2011, 19:14
I'm experienced with MySQL, but its the first time i am working with SQL.
This code returns the query, but not the fetched data from the field.
pawn Код:
stock GetAchievementDescription(Achievement[])
{
new query[128];
format(query,128,"SELECT Description FROM Achievements WHERE FullName = '%s'",Achievement);
JA_Result=db_query(JA_Database,query);
db_get_field(JA_Result,0,query,128);
db_free_result(JA_Result);
return query;
}