Code
local playerX, playerY, playerZ = getElementPosition ( localPlayer )
local gebiet = getZoneName ( playerX, playerY, playerZ )
if gebiet == "Unknown" then
gebiet = "Nicht Lokalisierbar"
end
if gebiet == "San Fierro" then
gebiet = "Police Departmend"
end
local stadt = getZoneName ( x, y, z, true )
if stadt == "San Fierro" then
stadt = "SF"
end
if stadt == "Las Venturas" then
stadt = "LV"
end
if stadt == "Los Santos" then
stadt = "LS"
end
if stadt == "Unknown" then
stadt = ""
end
local time = getRealTime()
local hours = time.hour
if hours < 10 then
hours = "0"..hours
end
local minutes = time.minute
if minutes < 10 then
minutes = "0"..minutes
end
local day = time.monthday
if day < 10 then
day = "0"..day
end
local month = time.month + 1
if month < 10 then
month = "0"..month
end
local year = time.year + 1900
local x, y = guiGetScreenSize()
--dxDrawRectangle(x, y, x, y, tocolor(0, 0, 0, 150), false)
dxDrawRectangle(x-225, 10, 220, 200, tocolor(0, 0, 0, 150), false)
dxDrawImage(x-220, 51, 17, 21, "images/hud/location.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
dxDrawImage(x-220, 20, 17, 21, "images/hud/stopwatch.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
dxDrawImage(x-220, 82, 16, 22, "images/hud/armour.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
dxDrawImage(x-220, 114, 16, 22, "images/hud/health.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
dxDrawImage(x-220, 146, 18, 21, "images/hud/hunger.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
dxDrawImage(x-220, 178, 17, 22, "images/hud/money.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
dxDrawText(day.. "." ..month.. "." ..year.. ", " ..hours.. ":" ..minutes.." Uhr", x-190, 25, 1004, 41, tocolor(0, 205, 205, 255), 1.10, "default-bold", "left", "top", false, false, true, false, false)
(Errorzeile) dxDrawText(gebiet..", "..stadt, x-190, 56, 1004, 72, tocolor(255, 255, 255, 200), 1.10, "default-bold", "left", "top", false, false, true, false, false)
Alles anzeigen
Das ist die script zeile und dieser error kommt:http://prntscr.com/cex373
Die gps anzeige wechselt immer von meinem Standort nach Red county und wieder zurück das immer.