#4

Quote:
Originally Posted by i514x_
Посмотреть сообщение
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
I'm not that dumb But thanks for helping.

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;
}
It compiles completely fine! !
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)