arrey out of bounds
#3

Array start with 0, not 1.
So change:
pawn Код:
if (IsPlayerInRangeOfPoint(playerid, 1.0, TrainJobCheckpoints[1][1], TrainJobCheckpoints[1][2], TrainJobCheckpoints[1][3])){SetPlayerCheckpoint(playerid, TrainJobCheckpoints[2][1], TrainJobCheckpoints[2][2], TrainJobCheckpoints[2][3], 8);}
to

pawn Код:
if (IsPlayerInRangeOfPoint(playerid, 1.0, TrainJobCheckpoints[0][0], TrainJobCheckpoints[0][1], TrainJobCheckpoints[0][2])){SetPlayerCheckpoint(playerid, TrainJobCheckpoints[1][0], TrainJobCheckpoints[1][1], TrainJobCheckpoints[1][2], 8);}
Etc.
Reply


Messages In This Thread
arrey out of bounds - by Gforcez - 20.08.2010, 10:12
Re: arrey out of bounds - by Claude - 20.08.2010, 10:45
Re: arrey out of bounds - by Vince - 20.08.2010, 10:48
Re: arrey out of bounds - by Gforcez - 20.08.2010, 13:59

Forum Jump:


Users browsing this thread: 1 Guest(s)