Server command not found [+REP].
#7

Okay, let me explain it better. I don't know your code so I'll give few examples instead.

Let's say you have:
pawn Код:
new VehicleStatus[MAX_PLAYERS][10][some_enum];
// 10 vehicles (valid indexes 0-9)
If you have 10 vehicles and PlayerInfo[playerid][pVehicles] is 10, by doing:
pawn Код:
for(new i = 1; i <= PlayerInfo[playerid][pVehicles]; i++)
it will loop from 1 to 10. As I said, the last (in this example) will be 9 and passing 10 is an invalid index and it causes run time error 4.
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: 2 Guest(s)