zcmd command help - easy
#1

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;
}
Reply
#2

Код:
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
Reply
#3

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
Reply
#4

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;
}
Reply
#5

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 ?
Reply
#6

Dialog is better.
Reply
#7

Quote:
Originally Posted by ajam123
Посмотреть сообщение
Dialog is better.
Could you give me one example, if its not to much trouble.
Reply
#8

pawn Код:
#define DIALOG_INFO 1
ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX,"Your bla bla text here.","okay","Exit");
Reply
#9

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.
Reply
#10

I think that strcat can be used too.

https://sampwiki.blast.hk/wiki/Strcat

Not really sure though.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)