18.04.2011, 16:14
PHP код:
CMD:inv(playerid,params[])
{
new string[256],listitems[512],idinv;
for(new i; i<MAX_PLAYER_INVENTAR; i++)
{
idinv++;
format(string, sizeof(string),"[%d]Slot - %d\n",i+1,PlayerInentar[playerid][i+1]);
strins(listitems, string, strlen(listitems), strlen(string));
}
ShowPlayerDialog(playerid,DIALOG_INVENTAR,DIALOG_STYLE_LIST,""#NAME_MODE"Stats",listitems,"Ок","Выбросить");
return 1;
}
Help me plz!