/command [something]
#5

Quote:
Originally Posted by NeMoK
Посмотреть сообщение
pawn Код:
#include <sscanf2>
#include <zcmd>

#define SCM SendClientMessage
#define COLOR_ERROR 0x808080FF

CMD:hat(playerid,params[])
{
new color[28];
if(sscanf(params,"s[28]",color)) return SCM(playerid,COLOR_ERROR,"Usage: /hat [color]");
if(strcmp(color, "blue", true)==0)
{
//HERE What happens if they write blue or BlUe or BLUE or bLuE etc..
}
if(strcmp(color, "red", true)==0)
{
//HERE What happens if they write red etc..
}

return 1;
}
I will try it right now. Thank you for helping me.
Reply


Messages In This Thread
/command [something] - by Stinged - 08.11.2013, 06:57
Re: /command [something] - by Astralis - 08.11.2013, 07:00
Re: /command [something] - by Stinged - 08.11.2013, 07:02
Re: /command [something] - by NeMoK - 08.11.2013, 07:03
Re: /command [something] - by Stinged - 08.11.2013, 07:06
Re: /command [something] - by NeMoK - 08.11.2013, 07:07
Re: /command [something] - by Stinged - 08.11.2013, 07:10
Re: /command [something] - by NeMoK - 08.11.2013, 07:16

Forum Jump:


Users browsing this thread: 1 Guest(s)