Run time error 4: "Array index out of bounds"
#6

This:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
|| means that there is an or statement in the script, so the seconds newstate must be removed.

pawn Код:
if((newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER) && !(oldstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER))
Reply


Messages In This Thread
Run time error 4: "Array index out of bounds" - by Porgand - 15.08.2014, 00:26
Re: Run time error 4: "Array index out of bounds" - by youssefehab500 - 15.08.2014, 00:41
Re: Run time error 4: "Array index out of bounds" - by Porgand - 15.08.2014, 18:27
Re: Run time error 4: "Array index out of bounds" - by ThePhenix - 15.08.2014, 18:29
Re: Run time error 4: "Array index out of bounds" - by Porgand - 17.08.2014, 18:08
Re: Run time error 4: "Array index out of bounds" - by LivingLikeYouDo - 17.08.2014, 18:32
Re: Run time error 4: "Array index out of bounds" - by Porgand - 22.08.2014, 01:23

Forum Jump:


Users browsing this thread: 1 Guest(s)