Bugged,HELP ME
#1

PHP код:
    if(!udb_Exists(PlayerName2(playerid))) {
        
PlayerInfo[playerid][Registered] = 0;
         
ShowPlayerDialog(playeridDIALOGID0+1DIALOG_STYLE_INPUT"{FAF623}________»»»|- Register Account -|«««________","{0835C7}WXTDM~RP [3c]\n \n{00FF40}New Registration\nYour{146AC7}Name\n \n{FFFFFF}Do {FF0000}Not {FFFFFF}Register Multi Accounts\n{FAF623}Do {FF0000}Not {FAF623}Use The Same Password That You Use Elsewhere\n{00FF40}Please {D6D631}Enter A Password {00FF40}For Your Account:""Register""Quit"); // this is the dialog type
        
SendClientMessage(playeridCOLOR_BRIGHTRED"++++========++++{66FFFF}++++========++++{FFFF00}++++========++++{0011FF}++++========++++{FF0000}++++========++++");
        
format(stringsizeof(string), "Welcome %s, To WXTDM~RP [3c] By [DK]EmanxD"PlayerName);
        
SendClientMessage(playeridCOLOR_ORANGEstring);
        
SendClientMessage(playeridCOLOR_BRIGHTRED"++++========****{66FFFF}++++========****{FFFF00}++++========****{0011FF}++++========****{FF0000}++++========****");
        
SendClientMessage(playerid,COLOR_YELLOW"{DBDB70}You have been given {0011FF}$9000000 starting money since you have no saved money as of yet!");
         
SendClientMessage(playerid,COLOR_YELLOW"{66CDAA}You can register your current player name with {66FFFF}/register [password]'");
           
SendClientMessage(playerid,COLOR_YELLOW"{0055FF}You must register and login to gain access to money, bank and vehicle saving options!");
           
SendClientMessage(playeridCOLOR_RED"{49F505}|+++++++|> Open This {0011FF}/Server {66CDAA}Or {0011FF}/info <|+++++++|");
           
SendClientMessage(playeridCOLOR_BRIGHTRED"{FA0C24}++**========++++{3DE3B1}**++========++**{FFFF00}**++========++**{FF00D9}**++========++**{FF00FF}**++========***");
         
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
        
GivePlayerMoney(playerid,9000000);
        
SetPlayerScore(playerid,5000);
    }
    if(
udb_Exists(PlayerName2(playerid))) {
        
SendClientMessage(playeridCOLOR_BRIGHTRED"{FA0C24}****========****{FFFFFF}****========****{FFFF00}****========****{0011FF}****========****{FF0000}****========****");
        
format(stringsizeof(string), "Welcome %s, to the new WXTDM~RP [3c] By [DK]EmanxD And [KOD]Vampire"PlayerName);
        
SendClientMessage(playeridCOLOR_ORANGEstring);
        
SendClientMessage(playeridCOLOR_BRIGHTRED"{FA0C24}****========****{FFFFFF}****========****{FFFF00}****========****{0011FF}****========****{FF0000}****========****");
        
format(file,256,"/ladmin/users/%s.sav",udb_encode(PlayerName));
        new 
tmp[50],tmp2[256];
        
GetPlayerIp(playerid,tmp,128);
        
tmp2 dini_Get(file,"ip");
        if(!
strcmp(tmp,tmp2,true) && ServerInfo[AutoLogin] == 1) {
            
format(string,128,"Welcome back, %s. You have automatically been logged in.",PlayerName);
              
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
              
SendClientMessage(playeridCOLOR_BRIGHTRED"++++========****{66FFFF}++++========****{FFFF00}++++========****{0011FF}++++========****{FF0000}++++========****");
            
PlayerInfo[playerid][LoggedIn] = 1;
            
GivePlayerMoney(playerid,dUserINT(PlayerName2(playerid)).("money")-GetPlayerMoney(playerid));
            
PlayerInfo[playerid][Deaths] = (dUserINT(PlayerName2(playerid)).("deaths"));
            
PlayerInfo[playerid][Kills] = (dUserINT(PlayerName2(playerid)).("kills"));
            
PlayerInfo[playerid][Level] = (dUserINT(PlayerName2(playerid)).("level"));
            
PlayerInfo[playerid][Vip] = (dUserINT(PlayerName2(playerid)).("vip"));
            
PlayerInfo[playerid][RFCLevel] = (dUserINT(PlayerName2(playerid)).("RFClevel"));
            
PlayerInfo[playerid][AGLevel] = (dUserINT(PlayerName2(playerid)).("AGlevel"));
            
PlayerInfo[playerid][B2KLevel] = (dUserINT(PlayerName2(playerid)).("B2Klevel"));
            
PlayerInfo[playerid][BALevel] = (dUserINT(PlayerName2(playerid)).("BAlevel"));
            
PlayerInfo[playerid][BMFLevel] = (dUserINT(PlayerName2(playerid)).("BMFlevel"));
            
PlayerInfo[playerid][COPLevel] = (dUserINT(PlayerName2(playerid)).("COPlevel"));
            
PlayerInfo[playerid][BLevel] = (dUserINT(PlayerName2(playerid)).("Blevel"));
            
PlayerInfo[playerid][GRPLevel] = (dUserINT(PlayerName2(playerid)).("GRPlevel"));
            
PlayerInfo[playerid][KODLevel] = (dUserINT(PlayerName2(playerid)).("KODlevel"));
            
PlayerInfo[playerid][XEFLevel] = (dUserINT(PlayerName2(playerid)).("XEFlevel"));
            
PlayerInfo[playerid][OSLevel] = (dUserINT(PlayerName2(playerid)).("OSlevel"));
            
PlayerInfo[playerid][TPKLevel] = (dUserINT(PlayerName2(playerid)).("TPKlevel"));
            
PlayerInfo[playerid][Registered] = 1;
            
LoadPlayer(playerid);
        }
         else {
            
format(string,sizeof(string),"The name %s, is already registered on this Server. Please login or you will be disconnected in 60 seconds",PlayerName);
             
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
               
SendClientMessage(playeridCOLOR_BRIGHTRED"++++========****{66FFFF}++++========****{FFFF00}++++========****{0011FF}++++========****{FF0000}++++========****");
               
PlayerInfo[playerid][LoggedIn] = 0;
               
ShowPlayerDialog(playeridDIALOGID0+2DIALOG_STYLE_INPUT"{FF00D9}____________»»»|- Login Account -|«««____________","{0835C7}WXTDM~RP [3c] , (0.3c)\n \n{146AC7}Player Login\n \n{00FF40}The Name {00FF40}Registered.\n{FF002B}If This Is Not Your Account, Please Quit And Change Your Name.\n \nPlease {D6D631}Enter Your Password {FFFFFF}To Login:""Login""Quit");
            
SetTimerEx("KickTimer",60000000,0,"i",playerid);
        }
    } 
i was new in server and want register,but it show login dialog
Reply


Messages In This Thread
Bugged,HELP ME - by Elegy - 16.12.2015, 03:22
Re: Bugged,HELP ME - by Elegy - 16.12.2015, 03:26
Re: Bugged,HELP ME - by Crayder - 16.12.2015, 03:36
Re: Bugged,HELP ME - by Elegy - 16.12.2015, 03:39
Re: Bugged,HELP ME - by SickAttack - 16.12.2015, 03:44
Re: Bugged,HELP ME - by Elegy - 16.12.2015, 03:45
Re: Bugged,HELP ME - by Elegy - 16.12.2015, 03:48
Re: Bugged,HELP ME - by Elegy - 16.12.2015, 03:55
Re: Bugged,HELP ME - by Elegy - 16.12.2015, 04:11
Re: Bugged,HELP ME - by Crayder - 16.12.2015, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)