Invalid Argument
#1

Hey guys, I just scripted this today, not sure what's wrong with it.
pawn Код:
new fileToOpen[48];
            format(fileToOpen, sizeof(fileToOpen), "XianAdmin/%s.ini", otherPlayer);
            if(fexist(fileToOpen))
            {
                new INI:fileForOpening = INI_Open(Path(otherPlayer)); //This line
                INI_SetTag(fileForOpening, "Player's Data");
                INI_ParseFile(fileForOpening,"loadaccount_%s", false, true, otherPlayer); //This line
                INI_RemoveEntry(fileForOpening, "Banned");
                INI_WriteInt(fileForOpening, "Banned", 0);
            }
Код:
C:\Documents and Settings\Xian99\Desktop\lol\Script\admin\xiansadmin.pwn(458) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Xian99\Desktop\lol\Script\admin\xiansadmin.pwn(460) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#2

INI_Open(fileToOpen);

What's the syntax for the second row?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)