Whats wrong ?
#1

It crashs my server. whats wrong ?
PHP Code:
    if(dialogid == 1) { 
    new 
file[128], name[MAX_PLAYER_NAME], str[128]; 
        
GetPlayerName(playeridnameMAX_PLAYER_NAME); 
        
format(filesizeof(file), "scriptfiles/UsersNEW/%s.ini"name); 
        if(
response) { 
            if(
strlen(inputtext)) { 
                
dini_Create(file); 
                
dini_IntSet(file"pw"num_hash(inputtext)); 
                
dini_IntSet(file"AdminLevel"PlayerInfo[playerid][AdminLevel]); 
                
dini_IntSet(file"cash"PlayerInfo[playerid][cash]); 
                
dini_IntSet(file"level"PlayerInfo[playerid][level]); 
                
format(strsizeof(str), "You are registered as ~r~%s. Your password is ~r~%s. /changepass to change it"nameinputtext); 
                
SendClientMessage(playeridCOLOR_WHITEstr); 
                
PlayerInfo[playerid][level] = dini_Int(file"level"); 
                
PlayerInfo[playerid][cash] = dini_Int(file"cash"); 
                
PlayerInfo[playerid][AdminLevel] = dini_Int(file"AdminLevel"); 
            } 
        } 
        else { 
            
Kick(playerid); 
        } 
    } 
Reply


Messages In This Thread
Whats wrong ? - by 963852741 - 30.07.2011, 22:23
AW: Whats wrong ? - by samtey - 30.07.2011, 22:26
Re: Whats wrong ? - by 963852741 - 30.07.2011, 22:29
Re: Whats wrong ? - by Kush - 30.07.2011, 22:49
Re: Whats wrong ? - by Guest3598475934857938411 - 30.07.2011, 23:21
Re: Whats wrong ? - by 963852741 - 31.07.2011, 06:04
Re: Whats wrong ? - by Kush - 31.07.2011, 07:05

Forum Jump:


Users browsing this thread: 1 Guest(s)