Dini Loading problem and saving one...
#1

Well i know this will look stupid or i am just big DINI noob:
pawn Код:
new lock = 0;
        new Float:vehx, Float:vehy, Float:vehz,Float:rot;
        GetVehiclePos(PCar[playerid][CarId], vehx, vehy, vehz);
        GetVehicleZAngle(PCar[playerid][CarId],rot);
        dini_IntSet(save,"Cost", PCar[playerid][Cost]);
        dini_IntSet(save, "VehId", PCar[playerid][VehId]);
        dini_FloatSet(save, "X", vehx);
        dini_FloatSet(save, "Y", vehy);
        dini_FloatSet(save, "Z", vehz);
        dini_FloatSet(save, "R",rot);
        dini_IntSet(save, "Locked", lock);
        dini_Set(save, "CarPass",name);
        dini_IntSet(save, "RepairCost", PCar[playerid][RepairCost]);
Well i don't get errors and warning but it doesn't save location... and i set player already in vehicle... what is wrong?
Reply
#2

What's the value of the "save" variable?
Reply
#3

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
What's the value of the "save" variable?
Yeah, he may have been saving to an invalid file, or just the wrong file as it is.
Reply
#4

well no! i'm such noob! i had #pragma unused ret_***** idk what was it... sorry....
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)