SA-MP Forums Archive
Why is this dialog not working? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why is this dialog not working? (/showthread.php?tid=105995)



Why is this dialog not working? - Striker_Moe - 01.11.2009

Код:
	if(strcmp(cmd, "/gogetstats", true) == 0)
	{
	new string[128], id[3] = {-1, ...}, i;
	for(i = 0; i < 3; i++)
	{
		GetMaxKillz(id[i], id[0], id[1], id[2]);
		if(!GetPlayerName(id[i], string, MAX_PLAYER_NAME)) string = "Unknown";
		format(string, sizeof string, "%d. %s (%d)", i + 1, string, Killz[id[i]]);
		ShowPlayerDialog(i,1, DIALOG_STYLE_MSGBOX, "TOP KILLERS (10 MINUTES)", string, "Okay", "Cancel");
	}
	for(i = 0; i < MAX_PLAYERS; i++) Killz[i] = false;
	return 1;
  }
It doesnt show up anything.



Re: Why is this dialog not working? - Striker_Moe - 01.11.2009

Anyone?


Re: Why is this dialog not working? - Striker_Moe - 01.11.2009

Why? D=


Re: Why is this dialog not working? - MenaceX^ - 01.11.2009

Quote:
Originally Posted by Seif_
You're showing 3 dialogs in a loop?
I counted 1 dialog and 2 loops.