Scripting Help
#1

I discovered a very horrible problem at my server.
When you login to the server you have to type the password, but when i click login or click enter. it log in

So, i added this code :

PHP код:
if (isnull(inputtext)) return SendClientMessage(playerid, -1""RED"ERROR: "GREY"You have not specified any password."); 
But it still not working.

Here's the code :

PHP код:
ShowPlayerDialog(playeridLOGINDIALOG_STYLE_PASSWORD""RED">> "PREMIUM"Account Login"""WHITE"Welcome back to "RED"Extreme Street Fighters"WHITE"!\n"WHITE"This account is "GREEN"registered"WHITE".\n\n"YELLOW"» Please enter your password below to login.""Login""Quit");
PlayerInfo[playerid][LoginFail]++;
if (
isnull(inputtext)) return SendClientMessage(playerid, -1""RED"ERROR: "GREY"You have not specified any password"); // This code
switch (PlayerInfo[playerid][LoginFail])
                {
case 
1SendClientMessage(playerid, -1""RED":: "GREY"You have entered an incorrect password! (1/3)");
case 
2SendClientMessage(playerid, -1""RED"::  "GREY"You have entered an incorrect password! (2/3)");
case 
3:
                    {
                        
SendClientMessage(playerid, -1""RED":: "GREY"You have reached your maximum login attempts! (3/3)");
                        
SetTimerEx("KickOnFail"500false"i"playerid);
                       }
                }
                return 
1
Help
Reply


Messages In This Thread
Scripting Help - by kirostar - 14.07.2014, 14:21
Re: Scripting Help - by hardcode - 14.07.2014, 14:28
Re: Scripting Help - by kirostar - 14.07.2014, 14:36
Re: Scripting Help - by BroZeus - 14.07.2014, 14:45
Re: Scripting Help - by kirostar - 14.07.2014, 14:50
Re: Scripting Help - by kirostar - 14.07.2014, 14:54
Re: Scripting Help - by hardcode - 14.07.2014, 14:55
Re: Scripting Help - by kirostar - 14.07.2014, 14:59
Re: Scripting Help - by BroZeus - 14.07.2014, 15:01
Re: Scripting Help - by kirostar - 14.07.2014, 15:12

Forum Jump:


Users browsing this thread: 2 Guest(s)