Roleplay commands, strcmp.
#10

Quote:
Originally Posted by Dizzle
Посмотреть сообщение
First of all download & include sscanf + define these colours -

Код:
#define COLOR_FADE1 0xC2A2DAAA // somekind of purple for /me /do /low etc
#define COLOR_FADE2 0xFFFFFFAA // white for /b and /shout command
Then paste this under OnPlayerCommandText(playerid, cmdtext[])



You can make the other commands like /low /shout and so on by editing these ones.

Hope I helped you.

If you have problems with including sscanf or you dont want to use it remove this line -

Код:
    if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
The code you have provided is total bull and here is why: the params variable does not exist in strcmp nor in OnPlayerCommandText. You need a better command processor (dcmd, zcmd, etc) for that to work.
Reply


Messages In This Thread
Roleplay commands, strcmp. - by angus_31 - 03.10.2012, 22:00
Re: Roleplay commands, strcmp. - by Dizzle - 03.10.2012, 22:15
Re: Roleplay commands, strcmp. - by angus_31 - 03.10.2012, 22:29
Re: Roleplay commands, strcmp. - by Dizzle - 03.10.2012, 23:12
Re: Roleplay commands, strcmp. - by Vince - 03.10.2012, 23:35
Re: Roleplay commands, strcmp. - by Skyrise - 04.10.2012, 00:03
Re: Roleplay commands, strcmp. - by angus_31 - 04.10.2012, 00:21
Re: Roleplay commands, strcmp. - by ReneG - 04.10.2012, 05:03
Re: Roleplay commands, strcmp. - by Cameltoe - 04.10.2012, 06:11
Re: Roleplay commands, strcmp. - by mamorunl - 04.10.2012, 09:01

Forum Jump:


Users browsing this thread: 3 Guest(s)