Need help with clan system!
#1

FIXED!

Stupid mistake!

This gave me error:
pawn Код:
return rank;
and this removed error:
pawn Код:
return strval(rank);
Anyways, thanks anyone for commenting!
Reply
#2

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;
}
Reply
#3

pawn Код:
return rank;
should not be an integer?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)