Pickups don't appear
#1

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.

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;
}
This displays in the console:

Код:
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
Reply


Messages In This Thread
Pickups don't appear - by Vince - 05.04.2009, 11:29
Re: Pickups don't appear - by Weirdosport - 05.04.2009, 11:43
Re: Pickups don't appear - by Vince - 05.04.2009, 11:48
Re: Pickups don't appear - by Weirdosport - 05.04.2009, 11:49
Re: Pickups don't appear - by [M2S]moe - 05.04.2009, 12:21

Forum Jump:


Users browsing this thread: 5 Guest(s)