Need help with clan system! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help with clan system! (
/showthread.php?tid=337300)
Need help with clan system! -
fiki574 - 25.04.2012
FIXED!
Stupid mistake!
This gave me error:
and this removed error:
Anyways, thanks anyone for commenting!
Re: Need help with clan system! -
Jows - 25.04.2012
try use
pawn Код:
forward GetPlayerClanRank(playerid);
public GetPlayerClanRank(playerid)
{
new player_name[MAX_PLAYER_NAME];
GetPlayerName(playerid,player_name,sizeof(player_name));
new rank[100];
new clanquery[100];
format(clanquery, sizeof(clanquery), "SELECT playerclanrank FROM members WHERE playername = '%s'", player_name);
mysql_query(clanquery);
mysql_store_result();
mysql_fetch_row(rank);
mysql_free_result();
return rank;
}
Re: Need help with clan system! -
ViniBorn - 25.04.2012
should not be an integer?