Problem with Level Name -
GAMER_PS2 - 19.10.2011
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
Re: Problem with Level Name -
nilanjay - 19.10.2011
Where did you put these codes?
Re: Problem with Level Name -
GAMER_PS2 - 19.10.2011
OnPlayerConnect it compiles great
Re: Problem with Level Name -
nilanjay - 19.10.2011
Ask the guy who maded the admin system. He can help you.
Re: Problem with Level Name -
Sascha - 19.10.2011
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");
Re: Problem with Level Name -
GAMER_PS2 - 19.10.2011
Didnt work
Re: Problem with Level Name -
GAMER_PS2 - 19.10.2011
@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)
Re: Problem with Level Name -
GAMER_PS2 - 20.10.2011
Comeon Please Comment
Re: Problem with Level Name -
SuperViper - 20.10.2011
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");
}
Re: Problem with Level Name -
GAMER_PS2 - 21.10.2011
Dude Thanks SuperViper 1+ rep for you