Array index out of bounds
#4

Make sure when you create global variables, MAX_PLAYERS is out of a callback, so when you use that variable later on, you can use the playerid inside of the variable. Example:

pawn Код:
// top of script

new BT[MAX_PLAYERS];

// in a command you would use it like this for example:

BT[playerid]
So basically, you need to change BT[MAX_PLAYERS] to BT[playerid]
Reply


Messages In This Thread
Array index out of bounds - by maramizo - 27.07.2012, 06:55
Re: Array index out of bounds - by MP2 - 27.07.2012, 07:01
Re: Array index out of bounds - by Goobiiify - 27.07.2012, 07:01
Re: Array index out of bounds - by grand.Theft.Otto - 27.07.2012, 07:03
Re: Array index out of bounds - by maramizo - 27.07.2012, 07:15
Re: Array index out of bounds - by iggy1 - 27.07.2012, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)