19.06.2018, 04:42
Interior cps arent working.. lemme show u my code..
Код:
enum storeInteriorCoordinateData { StoreName[32], Float:InteriorX, Float:InteriorY, Float:InteriorZ, InteriorID }; new Float:storeInteriorCoordinates[][storeInteriorCoordinateData] = { //SAN FIERRO ONLY {"BURGER SHOT", 362.9205,-75.2157,1001.5078, 10}, // {"GYM", 774.2014,-50.4772,1000.5859, 6},// {"MISTY'S BAR", 501.9337,-67.5643,998.7578, 11},// {"ZERO'S RC SHOP", -2240.7827,137.1085,1035.4141, 6},// {"AMMUNATION", 286.1404,-41.8046,1001.5156, 1},// {"GAYDAR DISCO", 493.9912,-24.9607,1000.6719, 17},// //{"SUPA SAVE", 375.962463,-65.816848,1001.507812, 10}, {"GAS STATION", -26.5975,-58.2672,1003.5469, 6},// {"BURGER SHOT", 362.9205,-75.2157,1001.5078, 10},// {"DONUT SHOP", 377.1571,-193.3035,1000.6328, 17},// //{"HOSPITAL", 375.962463,-65.816848,1001.507812, 10}, {"CLUCKIN' BELL", 365.7634,-11.8433,1001.8516, 9},// {"THE BARBER SHOP", 412.0977,-54.4467,1001.8984, 12},// {"TATTOO SHOP", -204.3791,-27.3476,1002.2734, 16},// {"SUB URBAN", 203.7211,-50.6643,1001.8047, 1},// {"TOY SHOP", -2240.7827,137.1085,1035.4141, 6},// {"DRIVING SCHOOL", -2026.8256,-103.6017,1035.1835, 3},// //{"CHURCH", 375.962463,-65.816848,1001.507812, 10}, {"THE JIZZY", -2636.1851,1402.4630,906.4609, 3},// {"WELL STACKED PIZZA", 372.4154,-133.5244,1001.4922, 5},// //{"SF BANK", 375.962463,-65.816848,1001.507812, 10}, {"VICTIM", 227.5630,-7.5413,1002.2109, 5},// {"WELL STACKED PIZZA", 372.4154,-133.5244,1001.4922, 5},// {"ZIP", 161.4383,-97.1108,1001.8047, 18},// {"BURGER SHOT", 362.9205,-75.2157,1001.5078, 10},// {"GAS STATION", -26.5975,-58.2672,1003.5469, 6}// };
Код:
for (new x = 0; x < sizeof(storeInteriorCoordinates); x++) { StoreInteriorCP[x] = CreateDynamicCP(storeInteriorCoordinates[x][InteriorX], storeInteriorCoordinates[x][InteriorY], storeInteriorCoordinates[x][InteriorZ], MAX_STORE_CP_SIZE, .worldid = 0); CreateDynamic3DTextLabel("EXIT", 0xFF0000FF, storeInteriorCoordinates[x][InteriorX], storeInteriorCoordinates[x][InteriorY], storeInteriorCoordinates[x][InteriorZ], 10.00, .worldid = 0, .interiorid = storeInteriorCoordinates[x][InteriorID]); }