Login Help
#3

They were posted in the codes I provided.

Logging:
PHP код:
            new tmppass[64]; 
            
//Store Player ID & TMP pass in echo to find string used to crash server 
            
new playername[MAX_PLAYER_NAME]; 
            
strmid(tmppassinputtext0strlen(inputtext), 255); 
            
GetPlayerName(playeridplayernamesizeof(playername)); 
            
//FadeColorForPlayer(playerid,0,0,0,0,0,0,0,255,15,0); 
            
if(strlen(playername) == 3
            { 
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Sorry, that name is too short, please change it."); 
                    
SetTimerEx("GettingKicked"2000false"i"playerid); 
                    return 
1
            } 
            
Encrypt(tmppass); 
            
OnPlayerLogin(playerid,tmppass); 
        } 
Registration:
PHP код:
                new tmppass[64]; 
                
strmid(tmppassinputtext0strlen(inputtext), 255); 
                
Encrypt(tmppass); 
                
PlayAudioStreamForPlayer(playerid,"hidden"); 
                
ClearChatbox(playerid100); 
                
//FadeColorForPlayer(playerid,0,0,0,255,0,0,0,0,15,0); 
                
OnPlayerRegister(playerid,tmppass); 
                
OnPlayerLogin(playerid,tmppass); 
                
//SendClientMessage(playerid, COLOR_YELLOW, "Account registered, you have been logged in automatically."); 
            

Reply


Messages In This Thread
Login Help - by Michael B - 17.05.2015, 14:12
Re: Login Help - by Smileys - 17.05.2015, 14:37
Re: Login Help - by Michael B - 17.05.2015, 14:51
Re: Login Help - by Smileys - 17.05.2015, 15:03
Re: Login Help - by Jefff - 17.05.2015, 15:09
Re: Login Help - by Michael B - 17.05.2015, 15:36
Re: Login Help - by Konstantinos - 17.05.2015, 15:39
Re: Login Help - by FernandoLight - 17.05.2015, 15:42
Re: Login Help - by Michael B - 17.05.2015, 15:57
Re: Login Help - by FernandoLight - 17.05.2015, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)