26.09.2011, 11:41
Hey,
I'm trying to make something that can repair a glitch in to my minecraft script. In to do so, I needed to retrieve the location of the object so I wrote this code:
I stopped and tested in-game and all it does is print "0.00000, 0.00000, 0.00000"... I've been searching for a fix for this for awhile and I don't really know what to do. I've also used streamer.inc and it still occurs.
Does anyone have a clue? I might be breaking the loop to early perhaps. Not sure, It even occurs when I put continue; instead of break;
If anyone has a fix, it'd be grateful.
EDIT: Still doesn't work even without 'continue;' nor 'break;'
I'm trying to make something that can repair a glitch in to my minecraft script. In to do so, I needed to retrieve the location of the object so I wrote this code:
pawn Код:
for(new i; i < MAX_OBJECTS; i++)
{
GetObjectPos(i, oX, oY, oZ);
printf("%f, %f, %f", oX, oY, oZ);
break;
}
Does anyone have a clue? I might be breaking the loop to early perhaps. Not sure, It even occurs when I put continue; instead of break;
If anyone has a fix, it'd be grateful.
EDIT: Still doesn't work even without 'continue;' nor 'break;'