Raised This Month: $ Target: $400
 0% 

Top15 Sorting From nVault


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-10-2013 , 07:33   Re: Top15 Sorting From nVault
Reply With Quote #1

Yes I made a readability error in the example I wrote in the linked thread. PLAYER_RANK is the integer that the player's are ranked by. Meaning you could change PLAYER_RANK to something like PLAYER_SCORE for readability.
Therefore the integer you format in the Rank column should be i + 1 :
Code:
iLen += format( motd[ iLen ], ( charsmax( motd ) ) - iLen,"%-5.5d %-22.22s %d^n", i + 1, ArrayData[ PLAYER_NAME ], ArrayData[ PLAYER_RANK ] );

You need to read what I said in the other thread about saving and reading the player's name.

Also make motd array static.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode