30.11.2013, 04:32
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; } } } |
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