Help with loop vehicles
#1

PHP код:
public:Function()
{
        for(new 
idxidx<sizeof(DynamicCars); idx++)
          {
            if(
DynamicCars[idx][CarType] == 20)
            {
                
printf("> ID %d is type 20."idx);
                break;
            }
        }
   return 
1;

This code is giving me 999x (max car number is 999) this message in server log:
PHP код:
ID 0 is type 20. 
How to fix it? Today i tryied to fix this all day and didnt get an solution. Someone?
Reply
#2

btw i have only id 0, 1, 2 and 3 as type 20
Reply
#3

Post 'DynamicCars'
Reply
#4

Now i'm on mobile phone later i'll post it. Btw i tryed with while, same error.
Reply
#5

oh i think i found something. one problem is where the function is called
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)