Jump to content

Electrosumm

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by Electrosumm

  1. function radiobekapcsol () local jatekosautoban = getPlayerName ( localPlayer ) radiomegy = not radiomegy if radiomegy then mozgat = true if (jatekosautoban) then if isPedInVehicle (jatekosautoban) then setSoundVolume(stream, 1) outputChatBox("#00FF00Bekapcsoltad/Kikapcsoltad a rádiót!#00FF00", 255, 255, 255, true) else mozgat = false setSoundVolume(stream, 0) outputChatBox("#8B1A1ANem vagy autóban!#8B1A1A", 255, 255, 255, true) end end end end its from my radio script but i have problem with it...i can only switch off the radio but cant swtich on. and debugscript said it : lua 16 bad argument 'isPedInVehicle (expected ped at argument 1 got string myname. help me and the last question is how can i do it ? : the radio switch on only keybind cause when i join the radio turn on...i use keybind + addEventHandler("onClientRender"
  2. i got this dxDrawText ( "Kinézet",..skin, x/3.6, y/3.2, x, y, tocolor ( 255, 255, 255, 255 ), 1, "clear" ) unexpected symbol near ')' where is the problem ?
  3. Hi! Im beginner scripter so i need lot of help. Now i work on player info panel but it dont work. The gui is work but dodnt show name ping etc..Why? setBindKeyWindowShow = function ( guiWindow, key ) if guiWindow and key then if getElementType ( guiWindow ) == "gui-window" then guiSetVisible ( guiWindow, false ); local setBindKey_ = function ( key ) guiSetVisible ( guiWindow, not guiGetVisible ( guiWindow ) ); showCursor ( guiGetVisible ( guiWindow ) ); end return bindKey ( key, "down", setBindKey_ ); else return false; end else return false; end end local PlayerWindow = guiCreateWindow (658, 189, 616, 412,"PlayerINFO", false ) setBindKeyWindowShow ( PlayerWindow, "f4" ) local nevlabel = guiCreateLabel (100,100,100,100,"Név:",false, PlayerWindow) local pinglabel = guiCreateLabel (100,120,120,120,"Ping:",false, PlayerWindow) local moneylabel = guiCreateLabel (100,140,140,140,"Pénz:",false, PlayerWindow) local skinlabel = guiCreateLabel (100,160,160,160,"Kinézet:",false, PlayerWindow) local healthLabel = guiCreateLabel (100,180,180,180,"Élet",false, PlayerWindow) function stats (theplayer) local money = getPlayerMoney (localPlayer) local ping = getPlayerPing(localPlayer) local playerName = getPlayerName(localPlayer) local health = getElementHealth(getLocalPlayer()) dxDrawText("Name:" ..playerName..(140,100,100,100,false,PlayerWindow) dxDrawText("Health: "..health..(140,180,180,180,false,PlayerWindow) dxDrawText("Ping:"..ping..(140,120,120,120),false,PlayerWindow) dxDrawText("Money:"..ping..(140,120,120,120),false,PlayerWindow) end
×
×
  • Create New...