13.04.2017, 16:29
Quote:
Hi, i have problem with rotation object in DIALOG_STYLE_PREVMODEL
http://prntscr.com/ew067n Код:
stock SearchName(id, item, slot) { new sNazev[50]; if(item == 157){ sNazev = "Kolo - Offroad"; } if(item == 158){ sNazev = "Kolo - Shadow"; } if(item == 159){ sNazev = "Kolo - Mega"; } if(item == 160){ sNazev = "Kolo - Rimshine"; } if(item == 161){ sNazev = "Kolo - Wires"; } if(item == 162){ sNazev = "Kolo - Classic"; } if(item == 163){ sNazev = "Kolo - Twist"; } if(item == 164){ sNazev = "Kolo - Cutter"; } if(item == 165){ sNazev = "Kolo - Switch"; } if(item == 166){ sNazev = "Kolo - Grove"; } if(item == 167){ sNazev = "Kolo - Import"; } if(item == 168){ sNazev = "Kolo - Dollar"; } if(item == 169){ sNazev = "Kolo - Trance"; } if(item == 170){ sNazev = "Kolo - Atomic"; } if(item == 171){ sNazev = "Kolo - Ahab"; } if(item == 172){ sNazev = "Kolo - Virtual"; } if(item == 173){ sNazev = "Kolo - Access"; } if(slot == 1){ strmid(Vozidlo[id][tuning_1_nazev], sNazev, 0, 50, 50); } return 1; } new const gAttachments[][e_ATTACHMENTS] = { {1025, "Kolo~n~Offroad"}, {1073, "Kolo~n~Shadow"}, {1074, "Kolo~n~Mega"}, {1075, "Kolo~n~Rimshine"}, {1076, "Kolo~n~Wires"}, {1077, "Kolo~n~Classic"}, {1078, "Kolo~n~Twist"}, {1079, "Kolo~n~Cutter"}, {1080, "Kolo~n~Switch"}, {1081, "Kolo~n~Grove"}, {1082, "Kolo~n~Import"}, {1083, "Kolo~n~Dollar"}, {1084, "Kolo~n~Trance"}, {1085, "Kolo~n~Atomic"}, {1096, "Kolo~n~Ahab"}, {1097, "Kolo~n~Virtual"}, {1098, "Kolo~n~Access"} }; switch(listitem) { case 0: { TuningEditSlot[playerid] = 1; new k = GetPVarInt(playerid, "VehicleITuning"); if(Vozidlo[k][tuning_1_objectid] == 0) { const size = sizeof(gAttachments) ; new models[size], labels[size][25] ; for (new x; x < size; x++) { models[x] = gAttachments[x][attachModel]; strcat(labels[x], gAttachments[x][attachName]); } ShowPlayerPreviewModelDialog(playerid, DIALOG_TUNING_SEARCH, DIALOG_STYLE_PREVMODEL, "Vyber modelu:", models, labels, "Zvolit", "Zavrit"); Dialog_SetModelRot(playerid, 157, .z = 35.0, .zoom = 1.3); // Wheel Offroad Dialog_SetModelRot(playerid, 158, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 159, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 160, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 161, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 162, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 163, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 164, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 165, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 166, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 167, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 168, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 169, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 170, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 171, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 172, .z = 35.0, .zoom = 1.3); Dialog_SetModelRot(playerid, 173, .z = 35.0, .zoom = 1.3); } else { ShowPlayerDialog(playerid, DIALOG_TUNING_EDIT, DIALOG_STYLE_LIST, "Tuning", "Upravit doplněk\nSmazat doplněk\nZměnit barvu doplňku", "Vybrat", "Zavřнt"); } } } |
"Dialog_SetModelRot" has index check in it so check if the function returns 0, if so then its because of the index check if no, then i have to look further.