Dcmd_commands help
#1

I'm trying to add "Dcmd_commands" to my server so people can see info and stuff but when I typed it in game it didn't work. I did everything like I was supposed to...what went wrong?

The code:
Код:
	dcmd(commands,4,cmdtext);
	dcmd(jobhelp,4,cmdtext);
	dcmd(bankinfo,4,cmdtext);
	return SendClientMessage(playerid,BLANCO,"No Such Command.");

}
dcmd_commands(const playerid,const params[])
{
    #pragma unused params
		ShowPlayerDialog(playerid,CMDS,DIALOG_STYLE_MSGBOX,"Commands","\n/JobHelp - Help about jobs\n/Bankinfo - Help about banking","OK","Cancel List");
		return 1;
Reply
#2

pawn Код:
dcmd(commands,8,cmdtext);
    dcmd(jobhelp,7,cmdtext);
    dcmd(bankinfo,8,cmdtext);
the second parameter is the command lenght
Reply
#3

Oh ok, thanks I'll try that out.

Edit: It worked.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)