11.02.2014, 01:32
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
this is the line that the error is at
here is the error
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;
}
pawn Код:
new INI:file = INI_Open(Path(unbanname));
pawn Код:
TDMv1.0.pwn(1299) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase