Jump to content

jesse50671

Members
  • Posts

    3
  • Joined

  • Last visited

jesse50671's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. function shadowedText(text,x,y,w,h,color,fontsize,font,aligX,alignY) dxDrawText(text:gsub("#%x%x%x%x%x%x",""),x,y+1,w,h+1,tocolor(0,0,0,255),fontsize,font,aligX,alignY, false, false, false, true) dxDrawText(text:gsub("#%x%x%x%x%x%x",""),x,y-1,w,h-1,tocolor(0,0,0,255),fontsize,font,aligX,alignY, false, false, false, true) dxDrawText(text:gsub("#%x%x%x%x%x%x",""),x-1,y,w-1,h,tocolor(0,0,0,255),fontsize,font,aligX,alignY, false, false, false, true) dxDrawText(text:gsub("#%x%x%x%x%x%x",""),x+1,y,w+1,h,tocolor(0,0,0,255),fontsize,font,aligX,alignY, false, false, false, true) dxDrawText(text,x,y,w,h,color,fontsize,font,aligX,alignY, false, false, false, true) end The Problem: attempt to perform arithmetic on local 'h' (a nil value)
  2. if getElementData( playerSource, "adminlevel" ) >= 6 then
  3. addCommandHandler("giveitem", function(playerSource, cmd, id, item, value, count) if getElementData( playerSource, "adminlevel" ) >= 6 then if (getElementData (playerSource, "adminduty") or 0) == 1 then if id and item and value and count then local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(playerSource, id) if targetPlayer then if giveItem(targetPlayer, tonumber(item), tonumber(value), tonumber(count), 0, true) then -- 0 -> dutyitem local comy = getElementData(playerSource, "anick") outputChatBox("#7cc576[Információ]: #ffffffKaptál #00AEFF".. comy .."#FFFFFF-tól/től egy #D75555" ..getItemName(tonumber(item)).." #ffffffitemet.", targetPlayer,255,255,255,true) outputChatBox("#7CC576[#7CC576wls#ffffffMTA #ffffff- #53bfdcAdmin információ#7CC576]: #00AEFF".. targetPlayerName:gsub("_", " ") .."#FFFFFF-nak/nek adtál egy #D75555" ..getItemName(tonumber(item)).." #ffffffitemet.", playerSource,255,255,255,true) exports.global:sendMessageToAdmins("#7CC576[#7CC576wls#ffffffMTA #ffffff- #53bfdcAdminnapló#7CC576]#ffffff: #00AEFF" .. comy .. " #FFFFFFadott #00AEFF".. targetPlayerName:gsub("_", " ") .."#ffffff-nak/nek egy #D75555" ..getItemName(tonumber(item)).."#ffffff nevezetű itemet.", 255, 0, 0,true) exports.logs:logMessage("[addolás] ".. comy .. " adott ".. targetPlayerName:gsub("_", " ") .."-nak/nek egy " ..getItemName(tonumber(item)).." nevezetű itemet.", 34) else outputChatBox("#7CC576[#7CC576wls#ffffffMTA #ffffff- #53bfdcAdmin információ#7CC576]: #ffffffNem fér el több tárgy az adott játékosnál!", playerSource, 255 ,255, 255, true) end end else outputChatBox("#7cc576[Használat]: #ffffff/"..cmd.." [Név / ID] [ItemId] [Érték] [Db]", playerSource, 255, 255, 255, true) end else outputChatBox("#d24d57[WLS - Defend]: #FFFFFFNem vagy adminszolgálatba!", playerSource,255,255,255,true) end end end ) ERROR: [james]\wls_items\sourceS.Lua:299: attempt to compare number with boolean
×
×
  • Create New...