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
#2

this code under onplayerconnect
Reply
#3

Then obviously 'udb_Exists' is returning true. You shouldn't be using dudb anyways, it's quite outdated. You shouldn't have expected an old, outdated gamemode (even if it said it was updated to 0.3.7, it still had old bad habits) from the Gamemodes section to work perfectly.
Reply
#4

i use 0.3c r5 server,but whats wrong with this,it bugged, idk how to fix
Reply
#5

What is the function "PlayerName2" returning? I'm assuming a roleplay name, such as "Firstname Secondname". In that case, you should use the function "PlayerName1" or w/e you have it called.

Otherwise, check if your user file exists. Delete it then.
Reply
#6

what did u mean? give me some code pleasd,ehelp me
Reply
#7

u mean modify player2 to player 1?
i got
PHP код:
C:\Users\user\Documents\Folder\New folder\New folder\New folder\New folder\New folder\New folder\New folder\New folder\New folder\LTFDM.pwn(12481) : error 017undefined symbol "PlayerName1"
C:\Users\user\Documents\Folder\New folder\New folder\New folder\New folder\New folder\New folder\New folder\New folder\New folder\LTFDM.pwn(12498) : error 017undefined symbol "PlayerName1"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Errors

Reply
#8

PHP код:
//==============================On Player Connect===============================
public OnPlayerConnect(playerid)
{
//-------//

// Remove OBJECT//
    
SetPlayerAttachedObject(playerid31906520.1200000.040000, -0.00350001001001.41.41.4);
//time//
    
SetWorldTime(0);
//    iTranslate_OnPlayerConnect(playerid);
//-----------------------------------LUsers-------------------------------------
    
PlayerInfo[playerid][bank] = 0;
    
PlayerInfo[playerid][bowner] = 0;
    
PlayerInfo[playerid][bowned] = 0;
    
PlayerInfo[playerid][Deaths] = 0;
    
PlayerInfo[playerid][Kills] = 0;
    
PlayerInfo[playerid][Jailed] = 0;
    
PlayerInfo[playerid][Frozen] = 0;
    
PlayerInfo[playerid][Level] = 0;
    
PlayerInfo[playerid][Vip] = 0;
    
PlayerInfo[playerid][RFCLevel] = 0;
    
PlayerInfo[playerid][AGLevel] = 0;
    
PlayerInfo[playerid][B2KLevel] = 0;
    
PlayerInfo[playerid][BALevel] = 0;
    
PlayerInfo[playerid][BMFLevel] = 0;
    
PlayerInfo[playerid][COPLevel] = 0;
    
PlayerInfo[playerid][BLevel] = 0;
    
PlayerInfo[playerid][GRPLevel] = 0;
    
PlayerInfo[playerid][KODLevel] = 0;
    
PlayerInfo[playerid][XEFLevel] = 0;
    
PlayerInfo[playerid][OSLevel] = 0;
    
PlayerInfo[playerid][TPKLevel] = 0;
    
PlayerInfo[playerid][LoggedIn] = 0;
    
PlayerInfo[playerid][Registered] = 0;
    
PlayerInfo[playerid][God] = 0;
    
PlayerInfo[playerid][TimesSpawned] = 0;
    
PlayerInfo[playerid][Muted] = 0;
    
PlayerInfo[playerid][MuteWarnings] = 0;
    
PlayerInfo[playerid][Warnings] = 0;
    
PlayerInfo[playerid][Caps] = 0;
    
PlayerInfo[playerid][DoorsLocked] = 0;
    for(new 
ii<PING_MAX_EXCEEDSi++) PlayerInfo[playerid][pPing][i] = 0;
    
PlayerInfo[playerid][SpamCount] = 0;
    
PlayerInfo[playerid][SpamTime] = 0;
    
PlayerInfo[playerid][PingCount] = 0;
    
PlayerInfo[playerid][PingTime] = 0;
    
PlayerInfo[playerid][FailLogin] = 0;
    
PlayerInfo[playerid][ConnectTime] = gettime();
    
//-----------------------------------------------------
    
InShamal[playerid] = 0;
    
InAndrom[playerid]=0;
    
PlayerInfo[playerid][gang]=0;
    
gangInvite[playerid]=0;
    
format(tstringsizeof(tstring), " ");
    
//-------------------------
    
TextDrawShowForPlayer(playeridrules0);
    
TextDrawShowForPlayer(playeridrules1);
    
TextDrawShowForPlayer(playeridrules2);

    new 
PlayerName[128],string[128], file[256];
    
GetPlayerName(playeridPlayerNamesizeof(PlayerName));
    new 
tmp3[50]; GetPlayerIp(playerid,tmp3,50);
    if(!
strcmp(PlayerName,DEFAULT_OWNER)){
        
SendClientMessage(playeridred"This Name is Blacklisted!");
        
SendClientMessage(playeridred"If You Think,Its Mistake,Please Make Appeal Here , Http://wxtdm-rp.cf");
        
format(string,sizeof(string),"%s has been kicked by Server [reason: Blacklisted Name] ",PlayerName);
        
SendClientMessageToAll(grey,string);
        
SaveToFile("KickLog",string);
        print(string);
    }
    if((!
strcmp(tmp3,"74.115.0.***")) || (!strcmp(tmp3,"74.115.1.***")) || (!strcmp(tmp3,"74.115.2.***")) || (!strcmp(tmp3,"74.115.3.***")) || (!strcmp(tmp3,"74.115.4.***")) || (!strcmp(tmp3,"74.115.5.***")) || (!strcmp(tmp3,"74.115.6.***")) || (!strcmp(tmp3,"74.115.7.***"))) {
        
SendClientMessage(playeridred"Dont Use HotSpotShield or any other ip spoofing program!");
        
SendClientMessage(playeridred"If You Think,Its Mistake,Please Make Appeal Here , Http://wxtdm-rp.cf");
        
format(string,sizeof(string),"%s has been kicked by Server [reason: HotSpotShield] ",PlayerName);
        
SendClientMessageToAll(grey,string);
        
SaveToFile("KickLog",string);
        print(string);
        return 
Kick(playerid);
    }
    if(
ServerInfo[ConnectMessages] == 1)
    {
        new 
mess[128],IP[128];
        
GetPlayerIp(playerid,IP,sizeof(IP));
        
format(mess,sizeof(mess),"%s Has Just Joined Our WXTDM~RP [3c]™[Welcome].  [ Country: %s | IP Address: %s | Ping: %i ]",PlayerName,GetPlayerCountryName(playerid),IP,GetPlayerPing(playerid));
        
printf(mess);
        
format(stringsizeof(string), "*** %s Has Just Joined Our WXTDM~RP [3c][Welcome] .(%s) ***"PlayerNameGetPlayerCountryName(playerid));
        
SendClientMessageToAll(COLOR_GREYstring);
    }
    
//-----------------------------------------------------
    
if (dUserINT(PlayerName2(playerid)).("banned") == 1)
    {
        
SendClientMessage(playeridred"This name is banned from this server!");
        
SendClientMessage(playeridred"If You Think,Its Mistake,Please Make Appeal Here , Http://wxtdm-rp.cf");
        
format(string,sizeof(string),"%s ID:%d was auto kicked. Reason: Name banned from server",PlayerName,playerid);
        
SendClientMessageToAll(greystring);  print(string);
        
SaveToFile("KickLog",string);  Kick(playerid);
    }
    
//-----------[ Name Kick ]-----------------
    
if(ServerInfo[NameKick] == 1) {
        for(new 
0BadNameCounts++) {
              if(!
strcmp(BadNames[s],PlayerName,true)) {
                
SendClientMessage(playerid,red"Your name is on our black list, you have been kicked.");
                
SendClientMessage(playeridred"If You Think,Its Mistake,Please Make Appeal Here , Http://wxtdm-rp.cf");
                
format(string,sizeof(string),"%s ID:%d was auto kicked. (Reason: Forbidden name)",PlayerName,playerid);
                
SendClientMessageToAll(greystring);  print(string);
                
SaveToFile("KickLog",string);  Kick(playerid);
                return 
1;
            }
        }
    }
        
//-----------------------------------------------------
    
if(ServerInfo[PartNameKick] == 1) {
        for(new 
0BadPartNameCounts++) {
            new 
pos;
            while((
pos strfind(PlayerName,BadPartNames[s],true)) != -1) for(new pospos strlen(BadPartNames[s]); ji++)
            {
                
SendClientMessage(playerid,red"Your name is not allowed on this server, you have been kicked.");
                
SendClientMessage(playeridred"If You Think,Its Mistake,Please Make Appeal Here , Http://wxtdm-rp.cf");
                
format(string,sizeof(string),"%s ID:%d was auto kicked. (Reason: Forbidden name)",PlayerName,playerid);
                
SendClientMessageToAll(greystring);  print(string);
                
SaveToFile("KickLog",string);  Kick(playerid);
                return 
1;
            }
        }
    }
    
//-----------------------------------------------------
    
if(ServerInfo[Locked] == 1) {
        
PlayerInfo[playerid][AllowedIn] = false;
        
SendClientMessage(playerid,red,"Server is Locked!  You have 20 seconds to enter the WXTDM~RP [3c] password before you are kicked!");
        
SendClientMessage(playerid,red," Type /password [password]");
        
LockKickTimer[playerid] = SetTimerEx("AutoKick"200000"i"playerid);
    }
    
//-----------------------------------------------------
    
if(strlen(dini_Get("ladmin/config/aka.txt"tmp3)) == 0dini_Set("ladmin/config/aka.txt"tmp3PlayerName);
     else
    {
        if( 
strfinddini_Get("ladmin/config/aka.txt"tmp3), PlayerNametrue) == -)
        {
            new 
akastring[256];
            
format(akastring,sizeof(akastring),"%s,%s"dini_Get("ladmin/config/aka.txt",tmp3), PlayerName);
            
dini_Set("ladmin/config/aka.txt"tmp3akastring);
        }
    }
    
//-----------------------------------------
    
format(string,128,"*** %s has joined the WXTDM~RP [3c].",PlayerName);
    for(new 
0GetMaxPlayers(); i++) if(IsPlayerConnected(i) && playerid != iSendClientMessage(i,grey,string);
    
//-----------------------------------------
    
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 [AG]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 [AG]EmanxD And [KOD]Vampire And [OS]John_Magdy"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}++++========****");
            
GameTextForPlayer(playerid,"~w~Welcome~r~Back~w~!!!",20000,4);
            
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);
        }
    } 
Reply
#9

this
@Jlalt System is bugged for satdm
http://www.******************/post/B...systems-20184/
Reply
#10

Do you realize how old 0.3c is? YEARS. Just pointing that out...
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)