Guten Abend und frohe Weihnachten ( falls ich es noch nicht gewünscht habe ),
also ich bin dabei das Ultimate Script zu bearbeiten. Da ist mir aufgefallen das dort das Invntar nicht funkt. Folgender fehler:
http://www.pic-upload.de/view-32357608/…-49-15.png.html
Im Script ist das die funktion :
Spoiler anzeigen
Lua
function fillWithItems ( grid, columnName, columnCount )
guiGridListClear ( grid )
-- placeAbleObjects --
if getElementData ( lp, "object" ) > 0 then -- Das ist Zeile 302
local row = guiGridListAddRow ( grid )
local objectName = placeAbleObjectNames[getElementData ( lp, "object" )]
if not objectName then
objectName = "Objekt"
end
guiGridListSetItemText ( grid, row, columnName, objectName, false, false )
guiGridListSetItemText ( grid, row, columnCount, "", false, false )
end
-- Handheld --
if getElementData ( lp, "gameboy" ) >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Handheld", false, false )
if getElementData ( lp, "gameboy" ) == 1 then value = "" else value = getElementData ( lp, "gameboy" ) end
guiGridListSetItemText ( grid, row, columnCount, value, false, false )
end
-- Notebook --
if getElementData ( lp, "fruitNotebook" ) >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Notebook", false, false )
if getElementData ( lp, "fruitNotebook" ) == 1 then value = "" else value = getElementData ( lp, "fruitNotebook" ) end
guiGridListSetItemText ( grid, row, columnCount, value, false, false )
end
-- Zeitung --
if getElementData ( lp, "newspaper" ) then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Zeitung", false, false )
guiGridListSetItemText ( grid, row, columnCount, "", false, false )
end
-- Benzin Kanister --
local Kanister = tonumber ( getElementData ( lp, "benzinkannister" ) )
if Kanister >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Kanister", false, false )
guiGridListSetItemText ( grid, row, columnCount, tostring ( Kanister ), false, false )
end
-- Drogen --
local drogen = tonumber ( getElementData ( lp, "drugs" ) )
if drogen >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Drogen", false, false )
guiGridListSetItemText ( grid, row, columnCount, tostring ( drogen ).." g", false, false )
end
-- Hanfsamen --
local weed = tonumber ( getElementData ( lp, "flowerseeds" ) )
if weed >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Hanfsamen", false, false )
guiGridListSetItemText ( grid, row, columnCount, tostring ( weed ), false, false )
end
-- Mats --
local mats = tonumber ( getElementData ( lp, "mats" ) )
if mats >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Materialien", false, false )
guiGridListSetItemText ( grid, row, columnCount, tostring ( mats ), false, false )
end
-- Würfel --
local dice = tonumber ( getElementData ( lp, "dice" ) )
if dice >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Wuerfel", false, false )
guiGridListSetItemText ( grid, row, columnCount, "", false, false )
end
-- Zigarretten --
local zigaretten = tonumber ( getElementData ( lp, "zigaretten" ) )
if zigaretten >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Zigaretten", false, false )
guiGridListSetItemText ( grid, row, columnCount, tostring ( zigaretten ), false, false )
end
-- Chips --
local chips = tonumber ( getElementData ( lp, "casinoChips" ) )
if chips >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Chips", false, false )
guiGridListSetItemText ( grid, row, columnCount, tostring ( chips ), false, false )
end
-- Hufeisen --
local horseshoes = tonumber ( getElementData ( lp, "totalHorseShoes" ) )
if horseshoes >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Hufeisen", false, false )
guiGridListSetItemText ( grid, row, columnCount, tostring ( horseshoes ), false, false )
end
-- Orden 1-3 --
local orden_1 = getElementData ( lp, "armyperm6" )
local orden_2 = getElementData ( lp, "armyperm7" )
local orden_3 = getElementData ( lp, "armyperm8" )
if orden_1 >= 1 or orden_2 >= 1 or orden_3 >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Orden", true, false )
if orden_1 >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Ehre", false, false )
guiGridListSetItemText ( grid, row, columnCount, "", false, false )
end
if orden_2 >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Luftwaffe", false, false )
guiGridListSetItemText ( grid, row, columnCount, "", false, false )
end
if orden_3 >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Verdienst", false, false )
guiGridListSetItemText ( grid, row, columnCount, "", false, false )
end
end
-- Überschrift --
for i = 1, 3 do
if getElementData ( lp, "food"..i ) >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, "Heilung", true, false )
break
end
end
-- Foodslot 1 --
local food = tonumber ( getElementData ( lp, "food1" ) )
if food >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, foodName[food], false, false )
guiGridListSetItemText ( grid, row, columnCount, "", false, false )
end
-- Foodslot 2 --
local food = tonumber ( getElementData ( lp, "food2" ) )
if food >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, foodName[food], false, false )
guiGridListSetItemText ( grid, row, columnCount, "", false, false )
end
-- Foodslot 3 --
local food = tonumber ( getElementData ( lp, "food3" ) )
if food >= 1 then
local row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, row, columnName, foodName[food], false, false )
guiGridListSetItemText ( grid, row, columnCount, "", false, false )
end
end
Alles anzeigen