My command not working [HELP] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: My command not working [HELP] (
/showthread.php?tid=150965)
My command not working [HELP] -
Jay. - 28.05.2010
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)
Re: My command not working [HELP] -
coole210 - 28.05.2010
Код:
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;
}
Re: My command not working [HELP] -
Jay. - 28.05.2010
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.