Extremely strange issue. -
iGetty - 18.01.2013
pawn Код:
sscanf(Query, "p<|>iiiiis[24]s[9]ffffiiiiiiiiiiiiiiiiiiiiiiii", vID, vModel2, vC[0], vC[1], vPrice2, vOwner2, vPla, Pos[0], Pos[1], Pos[2], Pos[3], vPaint_Job, vLock, vMods[1], vMods[2], vMods[3],
vMods[4], vMods[5], vMods[6], vMods[7], vMods[8], vMods[9], vMods[10], vMods[11], vMods[12], vMods[13], vMods[14], vMods[15], vMods[16], vMods[17], vMi, vCoc, vWe, vMo, vImp);
Vehicles[vID][vModel] = vModel2;
Vehicles[vID][vColor1] = vC[0];
Vehicles[vID][vColor2] = vC[1];
Vehicles[vID][vPrice] = vPrice2;
strmid(Vehicles[vID][VehicleOwner], vOwner2, 0, 24, 24);
Vehicles[vID][vPosX] = Pos[0];
Vehicles[vID][vPosY] = Pos[1];
Vehicles[vID][vPosZ] = Pos[2];
Vehicles[vID][vPosA] = Pos[3];
Vehicles[vID][VehiclePaintJob] = vPaint_Job;
Vehicles[vID][vLocked] = vLock;
Vehicles[vID][mod1] = vMods[1];
Vehicles[vID][mod2] = vMods[2];
Vehicles[vID][mod3] = vMods[3];
Vehicles[vID][mod4] = vMods[4];
Vehicles[vID][mod5] = vMods[5];
Vehicles[vID][mod6] = vMods[6];
Vehicles[vID][mod7] = vMods[7];
Vehicles[vID][mod8] = vMods[8];
Vehicles[vID][mod9] = vMods[9];
Vehicles[vID][mod10] = vMods[10];
Vehicles[vID][mod11] = vMods[11];
Vehicles[vID][mod12] = vMods[12];
Vehicles[vID][mod13] = vMods[13];
Vehicles[vID][mod14] = vMods[14];
Vehicles[vID][mod15] = vMods[15];
Vehicles[vID][mod16] = vMods[16];
Vehicles[vID][mod17] = vMods[17];
Vehicles[vID][vMiles] = vMi;
Vehicles[vID][vCocaine] = vCoc;
Vehicles[vID][vWeed] = vWe;
Vehicles[vID][vMoney] = vMo;
Vehicles[vID][vImpounded] = vImp;
format(Vehicles[vID][vPlate], 9, "%s", vPla);
print(Query);
printf("vImpounded = %i", Vehicles[vID][vImpounded]);
printf("vImp = %i", vImp);
This is printing:
Код:
[16:16 - 12] 5|490|0|0|14000|Callum_Getty|PJ05 VBC|-1096.7|-1612.61|76.5145|269.902|0|0|1010|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1
[16:16 - 12] vImpounded = 0
[16:16 - 12] vImp = 0
Please help me, it's not setting the vImp to the correct value.
Re: Extremely strange issue. -
park4bmx - 18.01.2013
it all starts from
Vehicles[vID][vImpounded] by the looks of it.
so do prints where ever you first assigned that variable to see whats going on
Re: Extremely strange issue. -
iGetty - 18.01.2013
Do you mean where I did the Vehicles[vID][vImpounded] = vImp?
Re: Extremely strange issue. -
iGetty - 18.01.2013
pawn Код:
Vehicles[vID][vImpounded] = vImp;
printf("Vehicles[vID][vImpounded] = %i", Vehicles[vID][vImpounded]);
I did that on the vImp section, it posted:
Код:
[59:16 - 41] Vehicles[vID][vImpounded] = 0
Edit: Sorry, was supposed to be an edit.
Re: Extremely strange issue. -
LarzI - 18.01.2013
Are vImpounded and vImp integers or bools?
Re: Extremely strange issue. -
iGetty - 18.01.2013
Integers.
Re: Extremely strange issue. -
park4bmx - 18.01.2013
are you sure your passing the
vImp correctly?
edit show some code how they get assigned or something cuz this is nothing
Re: Extremely strange issue. -
iGetty - 18.01.2013
It's all in the first post how I load it and then assign it to the Vehicles[vID][vImpounded] = vImp; thing.
Re: Extremely strange issue. -
FTLOG - 18.01.2013
Try using the enum (e<>) specifier. If that doesn't work, try to get bugged values into local variables, and then transfer those values to global enum variables. I had the similiar problem.
Re: Extremely strange issue. -
park4bmx - 18.01.2013
yes that is "sscanf" converting the "Query" for you but we dont know how that is set up, how any of the other things are assigned, we dont know if this is a process of loading information and assigning it to these variables
by that you cant tell anything simple!
And do any of the other variables get assigned ?