SQLite help
#4

Help?
Код:
stock SviClanovi(playerid, idorg)
{
    new DBResult: Result, Field1[24], Field2[24], Query[350], string[256];

   	format(Query, sizeof(Query), "SELECT * FROM USERS WHERE CLAN = %d", idorg);
	Result = db_query(Database, Query);
	new red = db_num_rows(Result);
	for(new i = 0; i < red; i++)
	{
		db_get_field_assoc(Result, "NAME", Field1, sizeof(Field1));
		db_get_field_assoc(Result, "RANK", Field2, sizeof(Field2));
		format(string,sizeof(string) , "| %s  | %s", Field1, Field2);
		SCM(playerid, -1, string);
	}
 	db_free_result(Result);
	return true;
}
i tried like this too but it is still not working
Reply


Messages In This Thread
SQLite help - by Danijel. - 16.03.2014, 09:10
Re: SQLite help - by Danijel. - 16.03.2014, 12:18
Re: SQLite help - by Danijel. - 16.03.2014, 17:26
Re: SQLite help - by Danijel. - 22.03.2014, 07:11

Forum Jump:


Users browsing this thread: 2 Guest(s)