Tag mismatch
#1

So i have attempted to make my own ban system so while i was making it the problem was when i open the player file and set the player as unbanned it says that its tag mismatch when i compile and i use Yini

here is my code for unban
pawn Код:
CMD:unban(playerid, params[])
{
   new unbanname[MAX_PLAYER_NAME];
   if(pInfo[playerid][Adminlevel] >= 4)
   {
      if(sscanf(params, "s[24]", unbanname)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /unban [name]");
      new INI:file = INI_Open(Path(unbanname));
          INI_WriteInt(file,"Banned",0);
          INI_Close(file);
      SendClientMessage(playerid,COLOR_LIME,"You unbanned this player");
   }
   return 1;
}
this is the line that the error is at
pawn Код:
new INI:file = INI_Open(Path(unbanname));
here is the error
pawn Код:
TDMv1.0.pwn(1299) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Reply


Messages In This Thread
Tag mismatch - by DarkLored - 11.02.2014, 01:32
Re: Tag mismatch - by Kirollos - 11.02.2014, 01:36
Re: Tag mismatch - by DarkLored - 11.02.2014, 01:38
Re: Tag mismatch - by Kirollos - 11.02.2014, 01:42
Re: Tag mismatch - by DarkLored - 11.02.2014, 01:45

Forum Jump:


Users browsing this thread: 1 Guest(s)