SA-MP Forums Archive
[Picture Added] Dialoglu Admins Error? - 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)
+--- Thread: [Picture Added] Dialoglu Admins Error? (/showthread.php?tid=357795)



[Picture Added] Dialog Admins Error? - Pawnocu[44] - 08.07.2012



when admin is two times the two admins.

Sorry English is bad

if (strcmp("/admins", cmdtext, true) == 0)
{
new string[256];
new fstring[256];
new pname[MAX_PLAYER_NAME];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][PlayerAdmin] >= 1)
{
GetPlayerName(i,pname, sizeof(pname));
format(fstring, sizeof(fstring),"Adminler\n");
strcat(string, fstring);
format(fstring, sizeof(fstring),"%i %i %s\n", i,PlayerInfo[i][PlayerAdmin],pname);
strcat(string, fstring);
}
}
ShowPlayerDialog(playerid,2563,DIALOG_STYLE_MSGBOX ,"Adminler",string,"OK"," tamam");
return 1;
}