Unknown cmd dcmd
#1

Yo.

Basicly DCMD always worked fine (in the same script) untill I made one command.

This is a part of the command which doesn't show up. Instead, "unknown command" appears.

Код:
		format(passtring, sizeof(passtring), "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",catext, htext,stext,rtext,dtext,cptext,cetext,artext,gttext,ktext,dotext);
        ShowPlayerDialog(playerid,1337,DIALOG_STYLE_MSGBOX,namestring, passtring, "Back", "Back");
        return 1;
Yes I do got
dcmd(bla,3,cmdtext) in my onplayercommandtext callback.
Reply
#2

Show the full command for more help ^^
Reply
#3

Pretty much:

Код:
  		format(string1, sizeof(string1), "{B7B5B7}'Test'");
    	format(string2, sizeof(string2), "{8BFF65}'Test'");
		switch(PlayerInfo[playerid][Car])
		{
  			case 0: catext = string1;
  			case 1: catext = string2;
		}
And this for all the (X)texts in the format for showplayerdialog.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)