[HELP] Filescripts
#1

Hello, i have problem
i use fadmin for Admins
but my fadmin is bugged :L
/register and /login is Bugged Anyone can help me?

Quote:

COMMAND:login(playerid,params[])
{
if(PlayerAcc[playerid][LoggedIn] == 0)
{
new lstring[256];
format(lstring,256,"Your account is registered!\n\nLogin to access your account:");
ShowPlayerDialog(playerid,LoginDialog,DIALOG_STYLE _PASSWORD,"Account Login",lstring,"Login","Quit");
return 1;
}
else if(PlayerAcc[playerid][Registered] == 0)
{
SendClientMessage(playerid,COLOR_RED,"SERVER: You are not registered! Please use /register first!");
return 1;
}
else if(PlayerAcc[playerid][LoggedIn] == 1)
{
SendClientMessage(playerid,COLOR_RED,"SERVER: You are already logged in!");
return 1;
}
return 1;
}
COMMAND:register(playerid,params[])
{
if(PlayerAcc[playerid][Registered] == 1)
{
SendClientMessage(playerid,COLOR_RED,"SERVER: You are already registered!");
return 1;
}
else if(PlayerAcc[playerid][LoggedIn] == 1)
{
SendClientMessage(playerid,COLOR_RED,"SERVER: You are already registered and logged in!");
return 1;
}
else if(PlayerAcc[playerid][Registered] == 0)
{
new rstring[256];
format(rstring,256,"Your account isnt registered!\n\nPlease type your password:");
ShowPlayerDialog(playerid,RegisterDialog,DIALOG_ST YLE_PASSWORD,"Register Account",rstring,"Register","Quit");
return 1;
}
return 1;
}
COMMANDecurity(playerid,params[])
{
if(PlayerLogged[playerid] == 1)
{
ShowPlayerDialog(playerid,SecurityDialogQ,DIALOG_S TYLE_INPUT,"{00FF40}Security Question:","Please type your security question!\n\nNOTE:\nType without \"?\"!","OK","");
return 1;
}
return 1;
}

Command Login and Securety is not in Blue
i want help.
Reply
#2

help D;
Reply
#3

You are only using color embedding within the captions. The color embedding in the captions won't effect or change/ alter the color in the actual string farther down.

Replace this:

pawn Код:
format(lstring,256,"Your account is registered!\n\nLogin to access your account:");
with this:

pawn Код:
format(lstring, 256, "{00FF40}Your account is registered!\n\nLogin to access your account:");
Then farther down, replace this:

pawn Код:
ShowPlayerDialog(playerid,SecurityDialogQ,DIALOG_S TYLE_INPUT,"{00FF40}Security Question:","Please type your security question!\n\nNOTE:\nType without \"?\"!","OK","");
with this:

pawn Код:
ShowPlayerDialog(playerid, SecurityDialogQ, DIALOG_STYLE_INPUT, "{00FF40}Security Question:", "{00FF40}Please type your security question!\n\nNOTE:\nType without \"?\"!", "OK","");
You can also take:

pawn Код:
new lstring[256];
And reduce it to 128 as it is just a waste.

pawn Код:
new lstring[128];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)