WARNING:
Bad argument @ killtimer
function ObjMissionText:killMissionText()
-- kill any active timers
killTimer(self._fadeTimer) -- LINE 136
-- kill active fading
fadeText = false
-- render invisible
for k, v in ipairs(self._imageTbl) do
guiSetVisible(v, false)
guiSetAlpha(v, 0)
end
self._fadeAlpha = 1.0
self._textVisible = false
end
ERROR:
ATTEMPT TO COMPARE NIL WITH NUMBER
function callbackHit(theShape, matchingDimension)
local id = ""
if (objTimerUtils:getSpawned() and getElementType(source) == "player" and source == player) then
id = tonumber(getElementData(theShape, "id"))
if (id <= 100) then -- [b]THE ERROR[/b]
objSpawnpoints:triggerPulse(id, true)
objClientPlayer:setProtected(true)
if (objClientPlayer:getGameState() == "STRoundStarted") then
objSpawnpoints:lockToMarkerByID(objClientPlayer, id, true)
objSpawnpoints:setSpawnpointID(id)
bindKey("enter", "down", keyFunc)
end
end
if (id >= 101 and id <= 499) then
objClientVehicles:triggerBlip(id, "1", 255)
end
if (id >= 500 and id <= 699) then
objLiftMarkers:triggerPulse(id, true)
if (objClientPlayer:getGameState() == "STRoundStarted") then
objLiftMarkers:lockToMarkerByID(objClientPlayer, id, true)
bindKey("enter", "down", keyFunc)
end
end
if (id >= 3001 and id <= 3499) then
objRefuelMarkers:triggerPulse(id, true)
end
if (id >= 3500 and id <= 3999) then
if (getPedOccupiedVehicle(source) ~= false) then
if (getElementData(getPedOccupiedVehicle(source), "id") ~= false) then
if (not objClientVehicles:getCanRepairByID(getElementData(getPedOccupiedVehicle(source), "id"))) then
objTextManager:createInstructDsp({"closerepair", "blank"})
end
end
end
objRepairMarkers:triggerPulse(id, true)
end
if (id >= 4000 and id <= 4100) then
objWarfactoryMarkers:triggerPulse(id, true)
if (objClientVehicles:isPlayerController(source) ~= false and objWarfactoryMarkers:isVehicleAllowed(source, id)) then
objClientWarfactory:Process("funcWaitingTransfer", getPedOccupiedVehicle(source))
bindKey("space", "down", keyFunc)
end
end
if (id >= 4101 and id <= 4199) then
objAmmodepotMarkers:triggerPulse(id, true)
end
end
end
CAN SOMEONE HELP ME RESOLVE THESE ERROR/WARNING