Problem selecting mission which is over a set distance
#8

Quote:
Originally Posted by thegamer355
Посмотреть сообщение
The code works, but the problem with mission ID 0 still occures, in the console it shows for example:
0 - 3
1 - 4
and it still sends mission ID 0, which i really can't explain.
But that only happens rarely
Its not mission id 0, its first element of tmp array that refer to mission id 3.

Change this:
Код:
 p = tmp[random(count)];
to this:
Код:
  p = tmp[random(count-1)];
And install crashdetect on your server. It will help you finding errors like that (variable over bound)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)