Coords in an Array
#4

I made the code easier to read, and I used better namings for it. Here it is:
pawn Код:
new Float:x, Float:y, Float:z;
for(new shop = 0; shop < sizeof(gShopLocations); shop++) {
    x = gShopLocations[shop][0], y = gShopLocations[shop][1], z = gShopLocations[shop][2];
    CreateDynamicPickup(1239, 1, x, y, z, -1, -1, INVALID_PLAYER_ID, 150.0);
    CreateDynamicMapIcon(x, y, z, 38, COLOR_WHITE, -1, -1, INVALID_PLAYER_ID, 150.0);
    CreateDynamic3DTextLabel("SHOP", COLOR_RED, x, y, z, 150.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
    printf("%f, %f, %f", x, y, z);
}
Reply


Messages In This Thread
Coords in an Array - by Luis- - 11.03.2012, 21:41
Re: Coords in an Array - by Babul - 11.03.2012, 21:47
Re: Coords in an Array - by Luis- - 11.03.2012, 22:26
Re: Coords in an Array - by jameskmonger - 11.03.2012, 22:33
Re: Coords in an Array - by Luis- - 11.03.2012, 22:35
Re: Coords in an Array - by jameskmonger - 11.03.2012, 22:42

Forum Jump:


Users browsing this thread: 1 Guest(s)