20.10.2011, 17:01
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:
And this is the code:
And when I comment this line:
COMPILES FINE!
I know how to format a string, but this is bizzare!
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.
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);
}
}
pawn Код:
format(out2, sizeof(out2), "Date: %s Player: %s ID: %d Level: %d Action: %s", GetDate(), GetName(playerid), playerid, GetPlayerLevel(playerid), out);
I know how to format a string, but this is bizzare!