20.10.2011, 17:21
Quote:
Maybe GetName(playerid) suppost to be a GetName[playerid], dunno if you got it as a function or variable but check.
@UP: Was posting when ur post wasn't there :P |
Now when I do so:
pawn Код:
stock SaveAdminAction(playerid, format[], va_args<>)
{
new
out[256],
File:Log = fopen(AActionsLog, io_append)
;
va_format(out, sizeof(out), format, va_start<2>);
if(Log)
{
fwrite(File:Log, TempFunc(playerid, out));
fclose(File:Log);
}
}
stock TempFunc(playerid, action[])
{
new Str[256];
format(Str, 256, "Date: %s Player: %s ID: %d Level: %d Action: %s", GetDate(), GetName(playerid), playerid, GetPlayerLevel(playerid), action);
return Str;
}