29.09.2012, 07:36
hello im facing a problem for example if i do /drink server says unknown command
help its just example i have many commands
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/drink", true)==0) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What is it that you want?", "Pepsi cola ($1)\nCoke ($2)\nBeer($3)", "Purchase", "Cancel"); return 0; }