06.04.2019, 17:29
(
Last edited by KamilPolska; 06/04/2019 at 06:08 PM.
)
Quote:
It's your sscanf that makes your command work as "giveleaderorg 45 0", check: https://sampforum.blast.hk/showthread.php?tid=602923
It won't show the list because most likely, you are putting a valid player id? |
Code:
else { SendClientMessage(playerid, -1, "================ LIST OF LEADERS ================"); format(str, 128, "SELECT `Nick` FROM `accounts` WHERE `FMember`='%d' AND `Rank`>1000", family); mysql_query(g_SQL, str); new nick[24]; new results = cache_num_rows(); if(results > 0) { for(new i = 0; i < results; i++) { cache_get_value_name(i, "Nick", nick); sscanf(str, "p<|>s[24]", nick); SendClientMessage(playerid, -1, nick); } SendClientMessage(playerid, -1, "================ END ================"); } }