23.04.2012, 18:13
Your problem is that 'AdminName' is not a string.
Adding [] with a number in adds dimensions to the variable, making it an array or a string depending on the context. MAX_PLAYER_NAME is 24, and it's the largest possible name a player can have in SA-MP.
Strings in PAWN are for alphanumerical characters, if you don't add [] for a string or an array, it's automatically an integer; that's a variable which only accepts whole numbers.
pawn Код:
enum pData
{
AdminLevel,
AdminName[MAX_PLAYER_NAME],
}
Strings in PAWN are for alphanumerical characters, if you don't add [] for a string or an array, it's automatically an integer; that's a variable which only accepts whole numbers.