17.04.2016, 12:06
Hello. I've some problem with my script. I'm using a Clan System by VinPure.
and i change it from SQlite to Easy SQlite include by Gammix.
the problem is, when i called function GetClanScore as integer %i
In the database show my clan has 20 scores.
I hope you understand my problem.
and i change it from SQlite to Easy SQlite include by Gammix.
the problem is, when i called function GetClanScore as integer %i
HTML Code:
format(string, sizeof(string), "** "WHITE"Clan Scores: %i", GetClanScores(GetPlayerClan(playerid))); SendClientMessage(playerid, red, string); Result: ** Clan Scores: 0
HTML Code:
stock GetClanScores(clan[]) { yoursql_get_field_int(SQL:0, "clans/scores", yoursql_get_row(SQL:0, "clans", "name = %s", clan)); return 1; }