zcmd command help - easy -
Dotayuri - 12.02.2013
Can anyone tell me why this is not working ?
Код:
CMD:help(playerid,params[]) {
SendClientMessage(playerid, BLUE, "Basic commands:\n(/appearance),(/describe),(/clearchat),(/clothing),(/drag),(/inventory),(/notes),(/createnote),(/deletenote),(/givenote)\n(/putcig),(/putbeer),(/putwine),(/takecig),(/takebeer),(/takewine),(/payphone),(/drop),(/hidenumber),(/buildfire)\n");
return 1;
}
Re: zcmd command help - easy -
ajam123 - 12.02.2013
Код:
CMD:help(playerid, params[])
{
SendClientMessage(playerid, BLUE, "Basic commands:\n(/appearance),(/describe),(/clearchat),(/clothing),(/drag),(/inventory),(/notes),(/createnote),(/deletenote),(/givenote)\n(/putcig),(/putbeer),(/putwine),(/takecig),(/takebeer),(/takewine),(/payphone),(/drop),(/hidenumber),(/buildfire)\n");
return 1;
}
try it
Re: zcmd command help - easy -
Dotayuri - 12.02.2013
Nope :/
I dont get it, i have another filterscript '/drugs' and its working just fine
even a CMD:ban right after that, and both are working fine
Re: zcmd command help - easy -
CreativityLacker - 12.02.2013
1. You can't use \N in SendClientMessage
2. Your string is 250 letters long while 1 chat line can go upto 128 only
Use this
pawn Код:
CMD:help(playerid, params[])
{
SendClientMessage(playerid, BLUE, "Basic commands:(/appearance),(/clothing),(/drag),(/inventory),(/notes),(/createnote),(/deletenote),(/givenote)(/putcig)");
SendClientMessage(playerid, BLUE, ",(/putbeer),(/putwine),(/describe),(/clearchat),(/takecig),(/takebeer),(/takewine),(/payphone),(/drop),(/hidenumber),(/buildfire)");
return 1;
}
Re: zcmd command help - easy -
Dotayuri - 12.02.2013
That did it, Thank you.
But one more thing, if i cant use \n
do you think it would be ok to make a new SendClientMessage for each break ?
Re: zcmd command help - easy -
ajam123 - 12.02.2013
Dialog is better.
Re: zcmd command help - easy -
Dotayuri - 12.02.2013
Quote:
Originally Posted by ajam123
Dialog is better.
|
Could you give me one example, if its not to much trouble.
Re: zcmd command help - easy -
RajatPawar - 12.02.2013
pawn Код:
#define DIALOG_INFO 1
ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX,"Your bla bla text here.","okay","Exit");
Re: zcmd command help - easy -
Dotayuri - 12.02.2013
Quote:
Originally Posted by Rajat_Pawar
pawn Код:
#define DIALOG_INFO 1 ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX,"Your bla bla text here.","okay","Exit");
|
but the thing is, im only using this so show the players what commands they can type.
Re: zcmd command help - easy -
emokidx - 12.02.2013
I think that strcat can be used too.
https://sampwiki.blast.hk/wiki/Strcat
Not really sure though.