Server command not found [+REP].
#3

It's caused run time error 4. Let's say you have 10 vehicles in VehicleStatus for each player. The valid indexes will be 0-9. Indexes always start from 0 so the loop would be:
pawn Код:
for(new i = 0; i < PlayerInfo[playerid][pVehicles]; i++)
and PlayerInfo[playerid][pVehicles] would be how many cars you have.

1 car? it loops with index 0.
2 cars? it loops with index 0 and 1
and so on..

that way, it won't go out of bounds.
Reply


Messages In This Thread
Server command not found [+REP]. - by HK - 27.05.2014, 12:37
Re : Server command not found [+REP]. - by S4t3K - 27.05.2014, 12:47
Re: Server command not found [+REP]. - by Konstantinos - 27.05.2014, 12:47
Re: Server command not found [+REP]. - by HK - 27.05.2014, 12:52
Re: Server command not found [+REP]. - by Konstantinos - 27.05.2014, 12:55
Re: Server command not found [+REP]. - by HK - 27.05.2014, 12:55
Re: Server command not found [+REP]. - by Konstantinos - 27.05.2014, 13:00
Re: Server command not found [+REP]. - by HK - 27.05.2014, 13:20
Re: Server command not found [+REP]. - by Konstantinos - 27.05.2014, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)