25.03.2014, 01:32
so i am kinda new on making formats in dialogs with loops
so i am trying to get the name of a player that has placed a hit on but it is just writing my NPC name
here is the Code
so i am trying to get the name of a player that has placed a hit on but it is just writing my NPC name
here is the Code
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Hitman[playerid] == 1)
{
new BigString[1900];
format(BigString,sizeof(BigString),"1.%s(%d)",GetName(IsList[i]),IsList[i]);
ShowPlayerDialog(playerid,Hitlist,DIALOG_STYLE_MSGBOX,"Hit List",BigString,"Ok","");
return 1;
}
}