Why my Admin Level is "0" lol?
#10

Your AdminLevel in the file might be 3, but if you do not load it from the file and assign it to:
pawn Code:
pInfo[playerid][pAdminLevel]
It's not gonna work.

By the way, I just noticed that if the player's admin is > 1, it will send the message but it sends 0 then. It seems weird to me.

@JamesH: What DanishHaq was trying to say is that when you format, the placeholder is %d or %i for integers. %s is used for strings. Also about the stock about getting the player's name. Why to re-call the function everytime to get the player's name when you can just get it ONCE they connect and then use it as long as they're online?

pawn Code:
// Global
new
    User_Name[ MAX_PLAYERS ]
;

// OnPlayerConnect:
GetPlayerName( playerid, User_Name[ playerid ], MAX_PLAYER_NAME );

// Anywhere you want to get the name:
User_Name[ playerid ]
Reply


Messages In This Thread
Why my Admin Level is "0" lol? - by MAFIAWARS - 24.09.2013, 13:17
Re: Why my Admin Level is "0" lol? - by Konstantinos - 24.09.2013, 13:22
Re: Why my Admin Level is "0" lol? - by SAMProductions - 24.09.2013, 13:22
Re: Why my Admin Level is "0" lol? - by MAFIAWARS - 24.09.2013, 13:23
Re: Why my Admin Level is "0" lol? - by DanishHaq - 24.09.2013, 21:41
Re: Why my Admin Level is "0" lol? - by JamesH - 25.09.2013, 05:18
Re: Why my Admin Level is "0" lol? - by DanishHaq - 25.09.2013, 06:47
Re: Why my Admin Level is "0" lol? - by JamesH - 25.09.2013, 06:50
Re: Why my Admin Level is "0" lol? - by MAFIAWARS - 25.09.2013, 11:20
Re: Why my Admin Level is "0" lol? - by Konstantinos - 25.09.2013, 11:28

Forum Jump:


Users browsing this thread: 2 Guest(s)