My command not working [HELP]
#1

Hey guys, Right so lets get this straight I'm not very good at scripting, So please don't think i'm a total noob


Anyway i've modifed the /me command from samp wiki to work as Admin: Message But its not working


Heres my code, And i want it to say Admin: [TYPEYOURTEXT]


Heres my code.if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
Код:
if(!strcmp(cmdtext, "/ad", true, 3)) // 3 is the length of /me
  {  if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
    new str[128];
    
    format(str, sizeof(str), "Admin: ", str, cmdtext[4]);
    SendClientMessageToAll(0xFFFF00AA, str);


    
    return 1;
  }
Right only reply if you can help, Thanks


(Jay)

Reply
#2

Код:
  if(!strcmp(cmdtext, "/ad", true, 3)) // 3 is the length of /me
  {  if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /ad [action]");
    new str[128];
    format(str, sizeof(str), "Admin: %s", cmdtext[4]);
    SendClientMessageToAll(0xFFFF00AA, str);
    return 1;
  }
Reply
#3

Quote:
Originally Posted by Coole[AG
]
Код:
  if(!strcmp(cmdtext, "/ad", true, 3)) // 3 is the length of /me
  {  if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /ad [action]");
    new str[128];
    format(str, sizeof(str), "Admin: %s", cmdtext[4]);
    SendClientMessageToAll(0xFFFF00AA, str);
    return 1;
  }
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)