05.04.2009, 11:29
Yet another question.
The pickups of my houses do not appear (server creates them all at 0 0 0)
I don't know where to search, because it compiles just fine.
This displays in the console:
The pickups of my houses do not appear (server creates them all at 0 0 0)
I don't know where to search, because it compiles just fine.
pawn Код:
public OnGameModeInit()
{
// Objects and cars etc
for(new p = 0; p <= MAX_HOUSES; p++)
{
new section[32];
new fX, fY, fZ;
valstr(section, p);
getINIStringDefault("HOUSES_A.ini", section, "posx", "10.0", HouseInfoA[p][posx]);
getINIStringDefault("HOUSES_A.ini", section, "posy", "10.0", HouseInfoA[p][posy]);
getINIStringDefault("HOUSES_A.ini", section, "posz", "10.0", HouseInfoA[p][posz]);
getINIStringDefault("HOUSES_A.ini", section, "sold", "true", HouseInfoA[p][sold]);
fX = strval(HouseInfoA[p][posx]);
fY = strval(HouseInfoA[p][posy]);
fZ = strval(HouseInfoA[p][posz]);
Icons_Houses_A[p] = CreatePickup(1239, 23, fX, fY, fZ);
printf("Pickup [%i] created at: %f, %f, %f", p, fX, fY, fZ);
}
return 1;
}
Код:
Pickup [0] created at: 0.000000, 0.000000, 0.000000 Pickup [1] created at: 0.000000, 0.000000, 0.000000 Pickup [2] created at: 0.000000, 0.000000, 0.000000 Pickup [3] created at: 0.000000, 0.000000, 0.000000 Pickup [4] created at: 0.000000, 0.000000, 0.000000 Pickup [5] created at: 0.000000, 0.000000, 0.000000 Pickup [6] created at: 0.000000, 0.000000, 0.000000