01.03.2013, 17:24
The part that is wrong at the moment is when I type "test" ir displays "Server unkown command" and nothing appears.
Code:
Code:
pawn Код:
CMD:test(playerid,params[])
{
for(new pItems:i; i < pItems; i++)
{
if(PlayerItems[playerid][i] > 0)
{
format(itemLine,sizeof(itemLine),"(%d) \t%s\n",PlayerItems[playerid][i], ReturnItemNameFromID(i));
strcat(dialogLines,itemLine);
}
}
ShowPlayerDialog(playerid,DIALOG_INV,DIALOG_STYLE_LIST,"Inventorius",dialogLines,"Naudoti","Atsaukti");
}