loop problem
#2

well i have tried many debugs.

first 1
PHP код:
new Float:OxFloat:OyFloat:Oz;
new 
counter=0;
for(new 
0sizeof(DropObject); i++)
    {
        
counter++;
        
GetObjectPos(DropObject[playerid][i], OxOyOz);
        if(
IsPlayerInRangeOfPoint(playerid4.0OxOyOz))
        {
            
DropObject[playerid][i] =0;
        }else return 
SendClientMessage(playerid,COLOR_RED,"Not Near...!"); 
    }
printf("Looped: %d",counter); 
but this didnt even show the print.

Second debug
PHP код:
new Float:OxFloat:OyFloat:Oz;
for(new 
0sizeof(DropObject); i++)
    {
        
printf("%d",DropObject[playerid][i]);
        
GetObjectPos(DropObject[playerid][i], OxOyOz);
        if(
IsPlayerInRangeOfPoint(playerid4.0OxOyOz))
        {
            
DropObject[playerid][i] =0;
        }else return 
SendClientMessage(playerid,COLOR_RED,"Not Near...!"); 
    } 
and that showed me that it looped the same object ID twice, Only if im near the first created object!
otherwise nothing

Edit: i will run more Debugs in a minute, as i have to do something else.
Reply


Messages In This Thread
loop problem - by park4bmx - 09.10.2012, 12:17
Re: loop problem - by park4bmx - 09.10.2012, 12:34
Re: loop problem - by Roel - 09.10.2012, 12:37
Re: loop problem - by park4bmx - 09.10.2012, 12:49

Forum Jump:


Users browsing this thread: 1 Guest(s)