Invalid Argument - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Invalid Argument (
/showthread.php?tid=448928)
Invalid Argument -
LeeXian99 - 06.07.2013
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.
Re: Invalid Argument -
introzen - 06.07.2013
INI_Open(fileToOpen);
What's the syntax for the second row?