Problem with /o chat
#7

Quote:

Your problem comes from the fact that this code

pawn Code:
else if(PlayerInfo[playerid][pAdmin] >= 999999)
{
new string[128];
format(string, sizeof(string), "(( Server Owner %s: %s ))", GetPlayerNameEx(playerid), params);
OOCOff(COLOR_OOC,string);
}

will never be read if you are an administrator, because if you are, this one

pawn Code:
else if(PlayerInfo[playerid][pAdmin] >= 2)
{
new string[128];
format(string, sizeof(string), "(( Administrator %s Level %i: %s ))", GetPlayerNameEx(playerid), AdminRank params);
OOCOff(COLOR_OOC,string);
}

will be considered as "true" before.

To fix it, replace your condition for admin level 2+ by this one :

pawn Code:
if(2 <= PlayerInfo[playerid][pAdmin] < 99999)

I did that and it said "Administrator" in /o still
Reply


Messages In This Thread
Problem with /o chat - by JordanSmith - 19.07.2014, 22:28
Respuesta: Problem with /o chat - by Xabi - 19.07.2014, 22:34
Re : Problem with /o chat - by S4t3K - 19.07.2014, 22:35
Re: Problem with /o chat - by [CG]Milito - 19.07.2014, 22:36
Re: Problem with /o chat - by JordanSmith - 19.07.2014, 22:43
Re : Problem with /o chat - by S4t3K - 19.07.2014, 23:10
Re: Problem with /o chat - by JordanSmith - 19.07.2014, 23:22
Re: Problem with /o chat - by sammp - 19.07.2014, 23:36
Re: Problem with /o chat - by JordanSmith - 20.07.2014, 12:38

Forum Jump:


Users browsing this thread: 1 Guest(s)