siemka mam problem z cen? tuningu
chodzi mi o to
[lua]["tuningPrice"] = string.format("%.02f", 1000*100)},[/lua]
B??d w DB3 : ERROR: xdsourceC.lua:1348:attempt to compare string with number [DUP x4]
To ca?y kod jak co? to pyta?:
[lua]availableTuningMarkers = {
--X, Y, Z, Vehicle Rotation (Use /markerpos to get perfect position and rotation (The command in sourceC.lua last row))
{264.05, 34.65, 1.94, 100.27}, -- Blueberry#1
}
tuningMenu = {
[1] = {
["categoryName"] = getLocalizedText("menu.optical"),
["availableUpgrades"] = {}, -- automatic getting optical upgrades to selected category
["subMenu"] = {
[1] = {["categoryName"] = getLocalizedText("menu.optical.frontBumper"), ["upgradeSlot"] = 14, ["tuningPrice"] = 10000, ["cameraSettings"] = {"bump_front_dummy", 130, 10, 6}},
[2] = {["categoryName"] = getLocalizedText("menu.optical.rearBumper"), ["upgradeSlot"] = 15, ["tuningPrice"] = 10000, ["cameraSettings"] = {"door_lf_dummy", -65, 3, 8}},
[3] = {["categoryName"] = getLocalizedText("menu.optical.hood"), ["upgradeSlot"] = 0, ["tuningPrice"] = 10000},
[4] = {["categoryName"] = getLocalizedText("menu.optical.exhaust"), ["upgradeSlot"] = 13, ["tuningPrice"] = 20000, ["camer... |