Unknown cmd dcmd - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Unknown cmd dcmd (
/showthread.php?tid=212742)
Unknown cmd dcmd -
Ice-cup - 17.01.2011
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.
Re: Unknown cmd dcmd -
Anthonyx3' - 17.01.2011
Show the full command for more help ^^
Re: Unknown cmd dcmd -
Ice-cup - 18.01.2011
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.