Argument type mismatch on BanEx?
#1

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:
Код:
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.
Heres the code: (What am i doing wrong? )
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;
}
Reply


Messages In This Thread
Argument type mismatch on BanEx? - by bajskorv123 - 21.02.2010, 11:15
Re: Argument type mismatch on BanEx? - by BlackFoX - 21.02.2010, 11:18
Re: Argument type mismatch on BanEx? - by bajskorv123 - 21.02.2010, 12:13
Re: Argument type mismatch on BanEx? - by pyrodave - 21.02.2010, 12:14
Re: Argument type mismatch on BanEx? - by bajskorv123 - 21.02.2010, 12:15

Forum Jump:


Users browsing this thread: 1 Guest(s)