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
#2

Bump
Reply
#3

You return 1 from your GetClanScores function.

pawn Code:
stock GetClanScores(clan[])
{
    return yoursql_get_field_int(SQL:0, "clans/scores", yoursql_get_row(SQL:0, "clans", "name = %s", clan));
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)