GetObjectPos returns 0.000..
#1

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:

pawn Код:
for(new i; i < MAX_OBJECTS; i++)
    {
        GetObjectPos(i, oX, oY, oZ);
        printf("%f, %f, %f", oX, oY, oZ);
        break;
    }
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;'
Reply


Messages In This Thread
GetObjectPos returns 0.000.. - by Lorenc_ - 26.09.2011, 11:41
Re: GetObjectPos returns 0.000.. - by aRoach - 26.09.2011, 11:48
Re: GetObjectPos returns 0.000.. - by Raimis_R - 26.09.2011, 11:51
Re: GetObjectPos returns 0.000.. - by Lorenc_ - 26.09.2011, 11:57
Re: GetObjectPos returns 0.000.. - by Raimis_R - 26.09.2011, 12:02
Re: GetObjectPos returns 0.000.. - by MP2 - 26.09.2011, 12:34
Re: GetObjectPos returns 0.000.. - by Lorenc_ - 26.09.2011, 13:08

Forum Jump:


Users browsing this thread: 4 Guest(s)