07.07.2012, 09:46
Since... I made this thing... http://pastebin.com/gN3mB3rq... I will help.
So now, make sure you have strtok. Then under: OnPlayerCommandText, Add this:
then... Don't follow anyone's suggestion... (Will make it worse)
Change
to:
EDIT:
Hope I helped + Please 'indent' my script because of Pastebin.com error :>
So now, make sure you have strtok. Then under: OnPlayerCommandText, Add this:
pawn Код:
new cmd[128];
new idx;
cmd = strtok(cmdtext, idx);
Change
pawn Код:
if(strcmp(cmdtext, "/cc", true) == 0)
pawn Код:
if(strcmp(cmd, "/cc", true) == 0) //Notice 'cmdtext' and 'cmd'
Hope I helped + Please 'indent' my script because of Pastebin.com error :>