- 0
Problema Dialog
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
1Shot
Am o problema la comanda /members. Ar trebuii sa apara Numele/Rank-ul/OnlineOffline/FW/Zile factiune/ultima logare, dar imi apar doar primele 4.
Zilele in factiune si ultima logare nu apar...nu stiu ce ar putea fi gresit...
Las aici cod-ul comenzii si o poza cu comanda /members din joc:
CMD:members(playerid, params[]) { if(PlayerInfo[playerid][pMember] >= 1 && PlayerInfo[playerid][pRank] >= 6) { new aim[2400], head[64], query[300], test[300], test1[4], test2[4], test3[10], test4[50], result[300]; format(query, sizeof(query), "SELECT * FROM `users` WHERE `users`.`Member` = '%d' ORDER BY `users`.`Rank` DESC LIMIT 50", PlayerInfo[playerid][pMember]); new Cache: membresult = mysql_query(SQL, query); format(head, sizeof(head), "Nume\tRank\tStatus\tFW\tDays\tLast Online\n"); for(new i, j = cache_get_row_count(); i != j; ++i) { cache_get_field_content(i, "name", result); format(test, 24, result); cache_get_field_content(i, "Rank", result); format(test1, 4, result); cache_get_field_content(i, "FWarn", result); format(test2, 4, result); cache_get_field_content(i, "FactionTime", result); format(test3, 10, result); cache_get_field_content(i, "lastOn", result); format(test4, 50, result); new id = GetIDClan( test ); if( id != INVALID_PLAYER_ID ) format(aim, sizeof(aim), "%s\t%s\tOnline\t%s\t%s\t%s\n", test, test1, test2, test3, test4 ); else format(aim, sizeof(aim), "%s\t%s\tOffline\t%s\t%s\t%s\n", test, test1, test2, test3, test4 ); } strins(aim, head, 0); cache_delete(membresult); ShowPlayerDialog(playerid,DIALOG_MEMBERS,DIALOG_STYLE_TABLIST_HEADERS,"Members",aim,"Exit",""); } return 1; }Multumesc!
Edited by 1Shot5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now