25.09.2013, 11:28
Your AdminLevel in the file might be 3, but if you do not load it from the file and assign it to:
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:
pInfo[playerid][pAdminLevel]
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 ]