Jump to content
  • 0

Problema /leaders


MafiaBoy

Question

13 answers to this question

Recommended Posts

if(!strcmp(cmdtext, "/leaders", true, 8) || !strcmp(cmdtext, "/lideri", true, 7))
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		new count = 0, LName[MAX_PLAYER_NAME];
		GetPlayerName(i, LName, sizeof(LName));
		if(IsPlayerConnected(i))
		{
			if(PlayerInfo[pLeader] == 1)
			{
				format(string, sizeof(string), "{0000FF}Police Department: %s (Level: %d | ID: %d)", LName, PlayerInfo[pLevel], i);
				count++;
			}
			if(PlayerInfo[pLeader] == 2)
			{
				format(string, sizeof(string), "{0000FF}F.B.I.: %s (Level: %d | ID: %d)", LName, PlayerInfo[pLevel], i);
				count++;
			}
                        ShowPlayerDialog(i, 11, DIALOG_STYLE_MSGBOX, "Lideri Online", string, "Ok", "");
		}
	}
	return 1;
}

vezi asa daca merge !

Edited by sRk7

"Mulţi programatori buni fac programare nu pentru că se aşteaptă să câştige bani sau să fie lăudaţi de public, ci pentru că e amuzant să programezi." - Linus Torvalds

Link to comment
Share on other sites

Revin cu edit in 30 min.

 

Edit:

defineste asta

 

#define leaders (1054)

 

iar comanda:

http://pastebin.com/GjtF4SDG

Edited by sRk7

"Mulţi programatori buni fac programare nu pentru că se aşteaptă să câştige bani sau să fie lăudaţi de public, ci pentru că e amuzant să programezi." - Linus Torvalds

Link to comment
Share on other sites

#define d_leaders (1054)

si la 

ShowPlayerDialog(i, leaders, DIALOG_STYLE_MSGBOX, "Lideri Online", str, "Close", "");

schimba cu:

ShowPlayerDialog(i, d_leaders, DIALOG_STYLE_MSGBOX, "Lideri Online", str, "Close", "");

"Mulţi programatori buni fac programare nu pentru că se aşteaptă să câştige bani sau să fie lăudaţi de public, ci pentru că e amuzant să programezi." - Linus Torvalds

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.