Problem with Level Name
#1

Guys i have problem with level name

Note: The Problem is the level name cant be display.

Here is the code.

I copy it from LuxAdmin its also the same
as on LuxAdmin.

Here is my admin system code (BUG LEVEL NAME):

pawn Code:
if(fexist(UserPath(playerid))) {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        #if defined AUTOLOGIN
            if(strcmp(tmpIP,pIP[playerid],true) == 0) {
                pLogged[playerid] = 1;
                SetPlayerScore(playerid,PlayerInfo[playerid][pScore]);
                GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
                if(PlayerInfo[playerid][pAdmin] > 0)
                {
                   switch(PlayerInfo[playerid][pAdmin])
                   {
                      case 1: AdmRank = "Trial Moderator";
                      case 2: AdmRank = "Moderator";
                      case 3: AdmRank = "Global Moderator";
                      case 4: AdmRank = "Trial Manager";
                      case 5: AdmRank = "Header Administrator";
                      case 6: AdmRank = "Senior Administrator";
                      case 7: AdmRank = "Junior Administrator";
                      case 8: AdmRank = "Scripter/Mapper";
                      case 9: AdmRank = "Co-Owner";
                   }
                   if(PlayerInfo[playerid][pAdmin] > 10)
                   {
                      AdmRank = "Server Owner";
                   }
                   new string[128];
                   new PlayerName[MAX_PLAYER_NAME];
                   GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
                   format(string,sizeof(string),"You have been automaticlly login | Level %d - %s -|",PlayerInfo[playerid][pAdmin],AdmRank);
                   SendClientMessage(playerid,COLOR_GREEN,string);
                   return 1;
                }
                return 1;
            }
        #endif
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""white"Login",""red"Note:"white"If this is not your account please leave to this account and create your own one.\n\n"white"Type your password below to login to your account","Login","Exit");
    } else {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""white"Register",""red"Note:"white"If you crash ingame your account will be save.\n\n"white"Type the password below to create new account","Register","Exit");
    }
LuxAdmin (BUG TOO):

Cant put the code here to long.

But please guys help me out
Reply
#2

Where did you put these codes?
Reply
#3

OnPlayerConnect it compiles great
Reply
#4

Ask the guy who maded the admin system. He can help you.
Reply
#5

try this:
pawn Code:
case 1: format(AdmRank, sizeof(AdmRank), "Trial Moderator");
                      case 2:  format(AdmRank, sizeof(AdmRank), "Moderator");
                      case 3:  format(AdmRank, sizeof(AdmRank), "Global Moderator");
                      case 4: format(AdmRank, sizeof(AdmRank), "Trial Manager");
                      case 5: format(AdmRank, sizeof(AdmRank), "Header Administrator");
                      case 6: format(AdmRank, sizeof(AdmRank), "Senior Administrator");
                      case 7:  format(AdmRank, sizeof(AdmRank), "Junior Administrator");
                      case 8:  format(AdmRank, sizeof(AdmRank), "Scripter/Mapper");
                      case 9:  format(AdmRank, sizeof(AdmRank), "Co-Owner");
Reply
#6

Didnt work
Reply
#7

@nilanjay but we need to wait Luxirion to Fix this and now i need to fix before its to late my friend will need this he will gonna took some of my functions (its alright for me because he is my friend)
Reply
#8

Comeon Please Comment
Reply
#9

pawn Code:
if(fexist(UserPath(playerid))) {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        #if defined AUTOLOGIN
            if(strcmp(tmpIP,pIP[playerid],true) == 0) {
                pLogged[playerid] = 1;
                SetPlayerScore(playerid,PlayerInfo[playerid][pScore]);
                GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
                if(PlayerInfo[playerid][pAdmin] > 0)
                {
                   switch(PlayerInfo[playerid][pAdmin])
                   {
                      case 1: AdmRank = "Trial Moderator";
                      case 2: AdmRank = "Moderator";
                      case 3: AdmRank = "Global Moderator";
                      case 4: AdmRank = "Trial Manager";
                      case 5: AdmRank = "Header Administrator";
                      case 6: AdmRank = "Senior Administrator";
                      case 7: AdmRank = "Junior Administrator";
                      case 8: AdmRank = "Scripter/Mapper";
                      case 9: AdmRank = "Co-Owner";
                   }
                   if(PlayerInfo[playerid][pAdmin] >= 10)
                   {
                      AdmRank = "Server Owner";
                   }
                   new string[128];
                   new PlayerName[MAX_PLAYER_NAME];
                   GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
                   format(string,sizeof(string),"You have been automaticlly login l Level %d - %s - l",PlayerInfo[playerid][pAdmin],AdmRank);
                   SendClientMessage(playerid,COLOR_GREEN,string);
                   return 1;
                }
                return 1;
            }
        #endif
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""white"Login",""red"Note:"white"If this is not your account please leave to this account and create your own one.\n\n"white"Type your password below to login to your account","Login","Exit");
    } else {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""white"Register",""red"Note:"white"If you crash ingame your account will be save.\n\n"white"Type the password below to create new account","Register","Exit");
    }
Reply
#10

Dude Thanks SuperViper 1+ rep for you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)