Need Help About Integer.
#1

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

HTML Code:
format(string, sizeof(string), "** "WHITE"Clan Scores: %i", GetClanScores(GetPlayerClan(playerid)));
SendClientMessage(playerid, red, string);

Result:

** Clan Scores: 0
In the database show my clan has 20 scores.

HTML Code:
stock GetClanScores(clan[])
{
	yoursql_get_field_int(SQL:0, "clans/scores", yoursql_get_row(SQL:0, "clans", "name = %s", clan));
	return 1;
}
I hope you understand my problem.
Reply


Messages In This Thread
Need Help About Integer. - by 2k16 - 17.04.2016, 12:06
Re: Need Help About Integer. - by 2k16 - 17.04.2016, 12:22
Re: Need Help About Integer. - by Misiur - 17.04.2016, 16:58

Forum Jump:


Users browsing this thread: 2 Guest(s)