Admins and MMmembers only shows one admin ..
#6

Try this:
PHP код:
if(PlayerInfo[i][MMRank] == 8format(fstr128"{FF0000}Rank: %d - %s (Id:%i) | %s |\n"PlayerInfo[i][MMRank], playernameiMuRank);
          else 
format(fstr128"Rank: %d - %s (Id:%i) | %s |\n"PlayerInfo[i][MMRank], playernameiMuRank);
          
strcat(stringfstr); 
You were formatting your line into variable "string" and you were appending the empty 'fstr" to it.
Also, you forgot the "\n" to start a new line in your dialog after each new admin, without it, everything would be on 1 line and the dialog would be a mess.

And I agree with Vince, never use "string" or "fstr" or any other variable-name that doesn't state it's usage.
Variables like "AdminList" and "AdminLine" would be proper descriptive variable names as the AdminList would hold the entire list of admins (the full list eventually being displayed in the dialog), while AdminLine only holds one line in the dialog.
Reply


Messages In This Thread
Admins and MMmembers only shows one admin .. - by KillerStrike23 - 15.01.2016, 20:56
Re: Admins and MMmembers only shows one admin .. - by KillerStrike23 - 15.01.2016, 21:46
Re: Admins and MMmembers only shows one admin .. - by Vince - 15.01.2016, 21:53
Re: Admins and MMmembers only shows one admin .. - by KillerStrike23 - 15.01.2016, 22:33
Re: Admins and MMmembers only shows one admin .. - by KillerStrike23 - 15.01.2016, 22:57
Re: Admins and MMmembers only shows one admin .. - by AmigaBlizzard - 15.01.2016, 23:17

Forum Jump:


Users browsing this thread: 2 Guest(s)