11.03.2012, 21:47
you mean a loop through the entire array?
remember to assign each pickup to a variable for refering it later.
pawn Код:
for(new rand=0;rand<sizeof(gShopLocations);rand++)
{
CreateDynamicPickup(1239, 1, gShopLocations[rand][0], gShopLocations[rand][1], gShopLocations[rand][2], -1, -1, INVALID_PLAYER_ID, 150.0);
CreateDynamicMapIcon(gShopLocations[rand][0], gShopLocations[rand][1], gShopLocations[rand][2], 38, COLOR_WHITE, -1, -1, INVALID_PLAYER_ID, 150.0);
CreateDynamic3DTextLabel("SHOP", COLOR_RED, gShopLocations[rand][0], gShopLocations[rand][1], gShopLocations[rand][2], 150.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
printf("%f, %f, %f", gShopLocations[rand][0], gShopLocations[rand][1], gShopLocations[rand][2]);
}