AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   blank row (https://forums.alliedmods.net/showthread.php?t=120106)

funstyle 02-28-2010 17:37

blank row
 
1 Attachment(s)
PHP Code:

#include <amxmodx>

#define PLUGIN    "Log on the file server players"
#define VERSION    "1.0"
#define AUTHOR    "Starsailor"

#define LOGFILE    "players_server.log"

new g_Enabled;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    new 
mapa[32];
    
get_mapname(mapa,31);
    
    
g_Enabled register_cvar("ltf_enable","1")
    
    if( 
get_pcvar_num(g_Enabled) )
        
log_to_file(LOGFILE"------------ Map %s : ------------"mapa);
}

public 
client_putinserverid ) {
    if( 
get_pcvar_num(g_Enabled) ) {
        new 
name[32], authid[32], userip[32];
        
        
get_user_name(idname31);
        
get_user_ip(iduserip311);
        
get_user_authid(idauthid31);
        
        
log_to_file(LOGFILE"Player %s connected (%s) (IP: %s)",name,authid,userip); 
    }
}    

public 
client_disconnect(id){
    if( 
get_pcvar_num(g_Enabled) ) {
        new 
name[32], authid[32], userip[32];
        
        
get_user_name(idname31);
        
get_user_ip(iduserip311);
        
get_user_authid(idauthid31);
        
        
log_to_file(LOGFILE"Player %s disconnected (%s) (IP: %s)",name,authid,userip);
    }


need help, can you write a blank row? like this

fysiks 02-28-2010 17:56

Re: blank row
 
PHP Code:

log_to_file(LOGFILE"Player %s connected (%s) (IP: %s)^n",name,authid,userip);
log_to_file(LOGFILE"Player %s disconnected (%s) (IP: %s)^n",name,authid,userip); 


funstyle 02-28-2010 18:22

Re: blank row
 
now works, thanks fysiks


All times are GMT -4. The time now is 08:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.