hallo ich habe ein problem mit meinem blinker script undzwar gehte er nicht woran könnte das liegen?
Lua
function addKeyInBlinkers() if (not isKeyBound(source, ",")) and (not isKeyBound(source, ".")) then bindKey(source, ",", "down", leftBlinkersON_OFF) bindKey(source, ".", "down", rightBlinkersON_OFF) bindKey(source, "-", "down", A_BlinkersON_OFF) endendaddEventHandler("onPlayerSpawn", getRootElement(), addKeyInBlinkers)
TABLE_posCarGaborites = {}TABLE_posCarGaborites[402] = { {-1.2, 3.6, 0}, {-1.2, -4.1, 0}, {1.1, 3.6, 0}, {1.1, -4.1, 0} } TABLE_posCarGaborites[409] = { {-1.2, 3.6, 0}, {-1.2, -4.1, 0}, {1.1, 3.6, 0}, {1.1, -4.1, 0} }TABLE_posCarGaborites[411] = { {-1.0, 2.5, -0.2}, {-1, -2.3, 0}, {1, 2.5, -0.2}, {1, -2.3, 0} }TABLE_posCarGaborites[412] = { {-1.2, 2.7, 0}, {-1.2, -3.7, 0}, {1.1, 2.7, 0}, {1.1, -3.7, 0} }TABLE_posCarGaborites[415] = { {-1.2, 2.7, 0}, { -1.2, -2.3, 0}, {1.1, 2.7, 0}, {1.1, -2.3, 0} }TABLE_posCarGaborites[416] = { {-1.2, 3.1, 0}, {-0.4, -4.1, 1.5}, {1.2, 3.1, 0}, {0.4, -4.1, 1.5} } TABLE_posCarGaborites[421] = { {-1.2, 2.7, 0}, { -1.2, -2.3, 0}, {1.1, 2.7, 0}, {1.1, -2.3, 0} }TABLE_posCarGaborites[422] = { {-1.0, 2.4, 0}, {-1.2, -2.5, 0}, {1.1, 2.4, 0}, {1.1, -2.5, 0} }TABLE_posCarGaborites[427] = { {-1.1, -2.7, 0.2}, {-1.1, -4.1, 0.2}, {1.1, 2.7, 0.2}, {1.1, -4.1, 0.2} }TABLE_posCarGaborites[424] = { {-0.7, 1.8, 0}, {-0.7, -1.7, 0}, {0.8, -1.7, 0}, {0.8, 1.8, 0} }TABLE_posCarGaborites[429] = { {-1.2, 2.2, 0}, {-1.2, -2.5, 0}, {1.1, 2.2, 0}, {1.1, -2.5, 0} }TABLE_posCarGaborites[439] = { {-1, 2.5, 0}, {-1, -2.6, 0}, {1.1, 2.5, 0}, {1.1, -2.6, 0} }TABLE_posCarGaborites[475] = { {-1, 2.5, -0.3}, {-1, -2.8, -0.3}, {1.3, 2.2, -0.3}, {1.1, -2.6, -0.3} }TABLE_posCarGaborites[477] = { {-1.1, 2.9, -0.1}, {-1.1, 2.9, 0}, {1.1, -2.9, 0}, {1.1, -2.9, -0.1} }TABLE_posCarGaborites[480] = { {-1.1, 2, 0}, {-1, -2.5, 0}, {1.1, 2, 0}, {1, -2.5, 0} }TABLE_posCarGaborites[506] = { {-1.1, 2.7, 0}, {-1.2, -2.8, 0.2}, {1.1, 2.7, 0}, {1.2, -2.8, 0.2} }TABLE_posCarGaborites[516] = { {-1.2, 2.7, 0}, {-1.2, -2.8, 0}, {1.2, 2.7, 0}, {1.2, -2.8, 0} }TABLE_posCarGaborites[533] = { {-1.1, 2.5, 0}, {-1.1, -2.6, 0}, {1.1, 2.5, 0}, {1.1, -2.6, 0} }TABLE_posCarGaborites[535] = { {-1.1, 2.6, 0}, {-1.1, -2.8, 0}, {1.1, 2.6, 0}, {1.1, -2.8, 0} }TABLE_posCarGaborites[541] = { {-1.1, 2.7, -0.1}, {-1.2, -2.8, -0.1}, {1.1, 2.7, -0.1}, {1.2, -2.8, -0.1} }TABLE_posCarGaborites[555] = { {-1.1, 1.1, 0}, {-0.8, -2.5, -0.1}, {1.1, 1.1, 0}, {0.8, -2.5, -0.1} }TABLE_posCarGaborites[558] = { {-1.1, 2.2, 0}, {-1.1, -2.5, 0.3}, {1.1, -2.5, 0.3}, {1.5, -2.5, 0} }TABLE_posCarGaborites[559] = { {-1, 2.7, 0.2}, {-1.1, -2.5, 0.2}, {1, 2.7, 0.2}, {1.1, -2.5, 0.2} }TABLE_posCarGaborites[560] = { {-1.1, 2.7, -0.2}, {-1.1, -2.3, 0.1}, {1.1, 2.7, -0.2}, {1.1, -2.3, 0.1} }TABLE_posCarGaborites[561] = { {-1, 2.7, -0.1}, {-1.1, -2.7, 0}, {1, 2.7, -0.1}, {1.1, -2.7, 0} }TABLE_posCarGaborites[562] = { {-1.0, 2.4, 0}, {-1.1, -2.3, 0.2}, {1.0, 2.4, 0}, {1.1, -2.3, 0.2} }TABLE_posCarGaborites[565] = { {-1.0, 2.2, 0}, {-1.1, -2.1, 0.2}, {1.0, 2.2, 0}, {1.1, -2.1, 0.2} }TABLE_posCarGaborites[587] = { {-1.1, 2.3, -0.1}, {-1.1, -2.7, 0}, {1.1, 2.3, -0.1}, {1.1, -2.7, 0} }TABLE_posCarGaborites[596] = { {-1.1, 2.3, 0}, {-1.1, -2.8, 0}, {1.1, 2.3, 0}, {1.1, -2.8, 0} }TABLE_posCarGaborites[599] = { {-1.3, 2.5, 0}, {-1.3, -2.8, 0.2}, {1.3, 2.5, 0}, {1.3, -2.8, 0.2} }
TABLE_MarkersInVehicle = {}TABLE_timer = { {}, {}, {} }
function EnterVehicle(thePlayer, seat, jacked) if (seat == 0) then if (getElementData(source, "blinkers") == false) then setElementData(source, "blinkers", true) TABLE_MarkersInVehicle[source] = {} TABLE_MarkersInVehicle[source][1] = createMarker(0, 0, 0, "corona", 0.3, 255, 102, 0, 0) TABLE_MarkersInVehicle[source][2] = createMarker(0, 0, 0, "corona", 0.3, 255, 102, 0, 0) TABLE_MarkersInVehicle[source][3] = createMarker(0, 0, 0, "corona", 0.3, 255, 102, 0, 0) TABLE_MarkersInVehicle[source][4] = createMarker(0, 0, 0, "corona", 0.3, 255, 102, 0, 0) local vehicleID = getVehicleID(source) -- zeile 58 attachElements(TABLE_MarkersInVehicle[source][1], source, TABLE_posCarGaborites[vehicleID][1][1], TABLE_posCarGaborites[vehicleID][1][2], TABLE_posCarGaborites[vehicleID][1][3]) attachElements(TABLE_MarkersInVehicle[source][2], source, TABLE_posCarGaborites[vehicleID][2][1], TABLE_posCarGaborites[vehicleID][2][2], TABLE_posCarGaborites[vehicleID][2][3]) attachElements(TABLE_MarkersInVehicle[source][3], source, TABLE_posCarGaborites[vehicleID][3][1], TABLE_posCarGaborites[vehicleID][3][2], TABLE_posCarGaborites[vehicleID][3][3]) attachElements(TABLE_MarkersInVehicle[source][4], source, TABLE_posCarGaborites[vehicleID][4][1], TABLE_posCarGaborites[vehicleID][4][2], TABLE_posCarGaborites[vehicleID][4][3]) end endendaddEventHandler("onVehicleEnter", getRootElement(), EnterVehicle)
habs von zeile 1 bis 65
Fehler/Warning:
[2013-05-22 14:54:06] WARNING: blinker/blinker.lua(Line 58) [Server] getVehicleID is deprecated and may not work in future versions. Please replace with getElementModel before Tuesday.