SA-MP Forums Archive
Y_INI Problem... - 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: Y_INI Problem... (/showthread.php?tid=462692)



Y_INI Problem... - cray1100 - 08.09.2013

Quote:

.pwn(1725) : error 035: argument type mismatch (argument 1)
.pwn(1727) : error 035: argument type mismatch (argument 1)
.pwn(1727) : error 017: undefined symbol "bExtra"
.pwn(1727) : warning 215: expression has no effect
.pwn(1727) : error 029: invalid expression, assumed zero
.pwn(1727) : fatal error 107: too many error messages on one line

I get this on,
pawn Код:
CMD:starteventex(playerid, params[])
{
    if(pInfo[playerid][Adminlevel] >= 2)
    {
        new event[25];
        for(new i; i<MAX_PLAYERS; i++)
        if(strcmp(params,"Motel",true))
        {
            format(event, sizeof(event), "Motel");
            if(fexist(Path2(event)))                                 //line 1725
            {
                INI_ParseFile(Path2(event)),"loadevent_%s", .bExtra = true, .extra = event);
            }
        }
        else return SendClientMessage(playerid, COLOR_RED, "R2D2: Event does not exist!");
    }
    else return 0;
}
paths stock,
pawn Код:
stock Path2(event)
{
    new str[128];
    format(str,sizeof(str),EventPath,event);
    return str;
}
path,
pawn Код:
#define EventPath "Events/%s.ini"
Also this command doesnt look too pretty to me... Can someone help me?


Re: Y_INI Problem... - cray1100 - 09.09.2013

Bump*


Re: Y_INI Problem... - cray1100 - 12.09.2013

Bump... -.-


Re: Y_INI Problem... - -=Dar[K]Lord=- - 12.09.2013

pawn Код:
INI_ParseFile(Path2(event),"loadevent_%s", .bExtra = true, .extra = event);



Re: Y_INI Problem... - cray1100 - 13.09.2013

Quote:
Originally Posted by -=Dar[K]Lord=-
Посмотреть сообщение
pawn Код:
INI_ParseFile(Path2(event),"loadevent_%s", .bExtra = true, .extra = event);
I already fixed that, that isnt the problem, still get the same errors... Same line...