Object no showing X cords
#1

Quote:

stock CreateATM(playerid, Float, Float:y, Float:z, Float:a)
{
for( new i = 0; i != MAX_ATMS; i++ )
{
if( ATMInfo[i][aCreated] == 0 )
{
new szName[24];
GetPlayerName( playerid, szName, 24 );

ATMInfo[i][aObject] = CreateObject( ATMS_OBJECT, x, y, z, 0, 0, a );
format( ATMInfo[i][aPlasedBy], 24, "%s", szName );
ATMInfo[i][aCreated] = 1;
ATMInfo[i][aX] = x;
ATMInfo[i][aY] = y;
ATMInfo[i][aZ] = z;//+1.5; // comment the +1.5 if you're not using object 980.
ATMInfo[i][aA] = a;
//SetPlayerPos( playerid, x+1, y+1, z );
new file[64];
format( file, 64, "Gates/gate_%d.ini", i );
if( !fexist( file ) )
{
dini_Create( file );
dini_IntSet( file, "Object", ATMInfo[i][aObject] );
dini_FloatSet( file, "X", ATMInfo[i][aX] );
dini_FloatSet( file, "Y", ATMInfo[i][aY] );
dini_FloatSet( file, "Z", ATMInfo[i][aZ] );
dini_FloatSet( file, "A", ATMInfo[i][aA] );
dini_Set( file, "PlacedBy", ATMInfo[i][aPlasedBy] );
}
break;
}
}
}

yeah when i try to make it, the object isn't there, and when I look at my scriptfiles gates/gates.ini

It shows everything

but

Object=744
X=0.000000
Y=1043.995361
Z=-1029.973022
A=32.089866
PlacedBy=Jason_Turkey

Instead of X it shows y, instead of Y it shows Z instead of Z it shows A.

PLease help
Reply


Messages In This Thread
Object no showing X cords - by JasonTurkey - 30.11.2013, 04:32
Re: Object no showing X cords - by cessil - 30.11.2013, 04:44
Re: Object no showing X cords - by JasonTurkey - 30.11.2013, 04:49
Re: Object no showing X cords - by cessil - 30.11.2013, 05:03
Re: Object no showing X cords - by JasonTurkey - 30.11.2013, 05:25
Re: Object no showing X cords - by cessil - 30.11.2013, 06:01

Forum Jump:


Users browsing this thread: 1 Guest(s)