Whats wrong with this functions
#1

pawn Код:
stock WriteInlog(name[],str[])
{
    new location[128];
    format(location,sizeof(location),"%s.sav",name);
    if(fexist(location))
    {
        new File:log = fopen(location,io_append);
        fwrite(log,str);
        fclose(log);
    }
    else { printf("Log %s is not found",location);}
    return 1;
}
stock Createlog(name[])
{
    new location[128];
    format(location,sizeof(location),"%s.sav",name);
    new File:log = fopen(location,io_append);
    fclose(log);
    return 1;
}
its writes but only one line how to make it writes every player that has used a command and ban log ect
Reply


Messages In This Thread
Whats wrong with this functions - by Gangster-rocks - 02.10.2012, 17:09
Re: Whats wrong with this functions - by Gangster-rocks - 02.10.2012, 17:30
Re: Whats wrong with this functions - by RedFusion - 02.10.2012, 17:53
Re: Whats wrong with this functions - by Gangster-rocks - 02.10.2012, 18:08
Re: Whats wrong with this functions - by TheDeadlyDutchi - 02.10.2012, 18:15
Re: Whats wrong with this functions - by Gangster-rocks - 02.10.2012, 18:49

Forum Jump:


Users browsing this thread: 2 Guest(s)