#1

I've been experiencing this problem.. I have absolutely no idea why this happens.
Whenever I do so, I get lots of errors

These are the errors:
pawn Код:
..\Stocks\Functions;Stocks;.pwn(241) : error 012: invalid function call, not a valid address
..\Stocks\Functions;Stocks;.pwn(241) : warning 215: expression has no effect
..\Stocks\Functions;Stocks;.pwn(241) : warning 215: expression has no effect
..\Stocks\Functions;Stocks;.pwn(241) : warning 215: expression has no effect
..\Stocks\Functions;Stocks;.pwn(241) : warning 215: expression has no effect
..\Stocks\Functions;Stocks;.pwn(241) : warning 215: expression has no effect
..\Stocks\Functions;Stocks;.pwn(241) : error 001: expected token: ";", but found ")"
..\Stocks\Functions;Stocks;.pwn(241) : error 029: invalid expression, assumed zero
..\Stocks\Functions;Stocks;.pwn(241) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
And this is the code:
pawn Код:
stock SaveAdminAction(playerid, format[], va_args<>)
{
    new
        out[256],
        out2[256],
        File:Log = fopen(AActionsLog, io_append)
    ;
    va_format(out, sizeof(out), format, va_start<2>);
/*241*/format(out2, sizeof(out2), "Date: %s Player: %s ID: %d Level: %d Action: %s", GetDate(), GetName(playerid), playerid, GetPlayerLevel(playerid), out);
    if(Log)
    {
        fwrite(File:Log, out2);
        fclose(File:Log);
    }
}
And when I comment this line:
pawn Код:
format(out2, sizeof(out2), "Date: %s Player: %s ID: %d Level: %d Action: %s", GetDate(), GetName(playerid), playerid, GetPlayerLevel(playerid), out);
COMPILES FINE!

I know how to format a string, but this is bizzare!
Reply


Messages In This Thread
y_va - by Zh3r0 - 20.10.2011, 17:01
Re: y_va - by Zh3r0 - 20.10.2011, 17:10
Re: y_va - by i514x - 20.10.2011, 17:12
Re: y_va - by Zh3r0 - 20.10.2011, 17:21
Re: y_va - by Zh3r0 - 20.10.2011, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)