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;
}
As Vince just said, in the script you have posted there's not any sscanf line... so how do you expect us to fix it?