A little bit of help please
#3

Quote:
Originally Posted by Calgon
Посмотреть сообщение
Your problem is that 'AdminName' is not a string.

pawn Код:
enum pData
{
    AdminLevel,
    AdminName[MAX_PLAYER_NAME],
}
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.
I am now getting this error

pawn Код:
(472) : error 047: array sizes do not match, or destination array is too small

Thank You


Please Help Me Please
Reply


Messages In This Thread
A little bit of help please - by Scripter12345 - 23.04.2012, 18:11
Re: A little bit of help please - by Calgon - 23.04.2012, 18:13
Re: A little bit of help please - by Scripter12345 - 23.04.2012, 18:15
Re: A little bit of help please - by ViniBorn - 23.04.2012, 18:15
Re: A little bit of help please - by Calgon - 23.04.2012, 18:18

Forum Jump:


Users browsing this thread: 2 Guest(s)