Help With Gamemode
#1

When I change something in the script like the rcon password then when i log in and writing the correct password thats writing SERVER: You must enter a password to procceed
Can someone fix it for me?

CODE
Reply
#2

Post the code. Nobody's gonna download anything.
Reply
#3

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Post the code. Nobody's gonna download anything.
Ok i will
Reply
#4

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Post the code. Nobody's gonna download anything.
Wait the code is too long
Reply
#5

Post on Pastebin
Reply
#6

Quote:
Originally Posted by Matthew57
Посмотреть сообщение
Post on Pastebin
Yo man i cant the paste ban says thats too long
There is no download man
Reply
#7

Go on your script pwn search for the rcon section, then take a enough part from this section & post it on pastebin website, then paste the link here.
Then we may help you, but without codes, no one will imagine your codes then help you.
Reply
#8

Quote:
Originally Posted by TheRealMan
Посмотреть сообщение
Go on your script pwn search for the rcon section, then take a enough part from this section & post it on pastebin website, then paste the link here.
Then we may help you, but without codes, no one will imagine your codes then help you.
PHP код:
else if(dialogid == 1// Register
    
{
        if(
response)
        {
            if(
strlen(inputtext) > 256)
            {
                
SendClientMessage(playeridCOLOR_GREY"Password can't be longer than 256 characters.");
                
ShowDialog(playerid1);
                return 
1;
            }
            new 
file[64], IP[16], string[128], password[256];
            
format(filesizeof(file), "users/%s.ini"RPNU(playerid));
            if(!
dini_Exists(file))
            {
                
GetPlayerIp(playeridIPsizeof(IP));
                
dini_Create(file);
                
WP_Hash(passwordsizeof(password), inputtext);
                
dini_Set(file"Password"password);
                
dini_Set(file"IP"IP);
                
PlayerInfo[playerid][pLevel] = 1;
                
dini_IntSet(file"Level"PlayerInfo[playerid][pLevel]);
                
format(stringsizeof(string), "SERVER: You have successfully registered on {FF6347}"SCRIPT_NAME"{FFFFFF}. (Password: %s)"inputtext);
                
SendClientMessage(playeridCOLOR_LIGHTREDstring);
                
ShowDialog(playerid2);
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_WHITE"SERVER: You have chosen to quit the server.");
            
Kick(playerid);
        }
    }
    else if(
dialogid == 2// Login
    
{
        if(
response)
        {
               new 
file[64], password[256], IP[16], password2[256];
            
format(filesizeof(file), "users/%s.ini"RPNU(playerid));
            
WP_Hash(password2sizeof(password2), inputtext);
            
format(passwordsizeof(password), "%s"dini_Get(file"Password"));
            if(
strcmp(passwordinputtext,true) && strcmp(passwordpassword2true))
            {
                
SendClientMessage(playeridCOLOR_WHITE"SERVER: Invalid password.");
                
ShowDialog(playerid2);
                return 
1;
            }
            if(
dini_Int(file"AdminAccount") == 1)
            {
                
SendClientMessage(playeridCOLOR_WHITE"SERVER: You can't login directly from an admin account.");
                
Kick(playerid);
                return 
1;
            }
            else if(
sscanf(inputtext"s[128]"inputtext))
            {
                
SendClientMessage(playeridCOLOR_WHITE"SERVER: You must enter a password to procceed.");
                
ShowDialog(playerid2);
                return 
1;
            }
            else
            { 
This is the login and register
Reply
#9

What gamemode are you using?
Reply
#10

Quote:
Originally Posted by TheRealMan
Посмотреть сообщение
What gamemode are you using?
Intelex
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)