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.