23.03.2013, 02:13
For some reason, a variable I am using to store interior ID gets a weird value (not what it should get).
I have no idea what could cause that, I checked it hundred of times and it seems okay.
Code:
I printed both variables (I chose the second interior) and this is the result:
Any ideas?
I have no idea what could cause that, I checked it hundred of times and it seems okay.
Code:
pawn Код:
// Enumerator in some part of the script.
enum E_INTERIOR_INFO
{
interiorInterior,
Float:interiorPosX,
Float:interiorPosY,
Float:interiorPosZ,
Float:interiorRot,
interiorName[128],
}
pawn Код:
// This array in another part of the script, I only show a small part of it, but it continues to about 100 lines.
new
g_aInteriorInfo[][E_INTERIOR_INFO] =
{
{ 11, 2003.1178, 1015.1948, 33.008, 351.5789, "Four Dragons' Managerial Suite" },
{ 5, 770.8033, -0.7033, 1000.7267, 22.8599, "Ganton Gym" }
// ...
};
pawn Код:
// The problematic code:
gHotelInfo[id][hotelExInterior] = g_aInteriorInfo[listitem][interiorInterior];
printf("%d, %d", gHotelInfo[id][hotelExInterior], g_aInteriorInfo[listitem][interiorInterior]);
Quote:
1084227584, 5 |