21.02.2010, 11:15
Hey, I made a ban command for my friend because he dont trust any other admin systems so i wanted to make one for him 
He dont know how to use dcmd so i made it with strtok.
But when i try to compile it it says:
Heres the code: (What am i doing wrong?
)

He dont know how to use dcmd so i made it with strtok.
But when i try to compile it it says:
Код:
C:\Users\Administrator\Desktop\Server\admin.pwn(71) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.

pawn Код:
if(strcmp(cmd, "/ban", true) == 0)
{
new tmp[128];
new tmp2[128];
new id;
new reason;
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
id = strval(tmp);
reason = strval(tmp2);
BanEx(id, reason);
return 1;
}