-
Content Count
239 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Seba500PLK
-
Rank
Trick
Details
-
Gang
RealZ
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Problem z wyciągnięciem danych z tabeli
Seba500PLK replied to dynia1221's topic in Pomoc ze skryptami i programowaniem w Lua
Trochę namieszałeś local dbPolicja = dbConnect("sqlite",":/frakcje.db") function spawn() local nazwaGracza = getPlayerName(source) local nazwa = getServerName () outputChatBox ("Witaj "..nazwaGracza.. " na serwerze "..nazwa.."! Administracja zyczy milej gry!",source) spawnPlayer(source,-204.71535, 1119.36426, 19.74219,-90,0,0,0) fadeCamera(source,true) setCameraTarget(source,source) if dbPolicja then local qh = dbQuery(dbPolicja,"SELECT * FROM pol WHERE nick=?", nazwaGracza) local wynik = dbPoll(qh,-1) if wynik and wynik[1] then if wynik[1]['nick'] == nazwaGracz -
local useItem = {}; function onPlayerUseMedicObject(itemName) local playersource = source if ( not useItem[playersource] ) then useItem[playersource] = true; setPedAnimation (playersource,"BOMBER","BOM_Plant",2,true,false,nil,false) setTimer( function () if itemName == "Bandage" then setElementData(playersource,"bleeding",0) setElementData(playersource,itemName,getElementData(playersource,itemName)-1) elseif itemName == "First Aid Kit" then setElementData(playersource,"blood",getElementData(playersource,"blood")+math.random(3000,9000)) setElementData(playersou
-
Bad argument @'guiSetEnabled' [Expected gui-element at argument 1, got nil]
Seba500PLK replied to mgdmgd's topic in Scripting
change local function to function -
Bad argument @'guiSetEnabled' [Expected gui-element at argument 1, got nil]
Seba500PLK replied to mgdmgd's topic in Scripting
local wInventory = false local function openElementInventory( ax, ay ) ... end addEvent( "openElementInventory", true ) addEventHandler( "openElementInventory", getRootElement(), openElementInventory ) addEventHandler( "onClientChangeChar", getRootElement(), hideMenu ) addEvent( "fini:~emMove", true ) addEventHandler( "fini:~emMove", getLocalPlayer(), function( ) guiSetEnabled( wInventory, true ) guiSetVisible( wWait, false ) end ) -
Potrzebuje pomocy ze skryptem
Seba500PLK replied to CertER's topic in Pomoc ze skryptami i programowaniem w Lua
jak dalej tego nie rozumiesz napisz mi na priv -
Automatyczne nadawanie nitra - problem
Seba500PLK replied to mrJakso's topic in Pomoc ze skryptami i programowaniem w Lua
co to onPlayerPickUpRacePickup ? -
Tutaj chodzi o to że wywołujesz funkcje panel1 a nie fpanelu1 addCommandHandler("panel1", panel1) wszystko dziala tak jak powinno w twoim kodzie, funkcja fpanelu1 nie jest w ogole uzywana, dodatkowo korzystasz z addEventHandler ("onClientRender", root, panel1) co jest bez sensu z uzywaniem GUI, to uzywa sie np w przypadku dx (np dxDrawText) w GUI tego nie uzywamy. Caly skrypt powinnien wygladac tak: open = false; spawnScreenMenu = guiCreateWindow ( 0.15, 0.33, 0.7, 0.34, "Naglowek", true ); botton = guiCreateButton ( 0.4, 0.85, 0.20, 0.15, "OK", true, spawnScreenMenu
-
Seba500PLK started following Skins for Ped, help me, [ERROR] EngineLoadTXD and 7 others
-
check with another models
-
LicenseVehicles = { [411]=true, [602]=true, [593]=true } function licensecheck(thePlayer, seat) local carlicense = getElementData(thePlayer, "license") if (carlicense == 1 ) and (seat == 0) then else if (LicenseVehicles[getElementModel ( source )]) outputChatBox("You are not a driver license", thePlayer, 255, 0, 0) removePedFromVehicle(thePlayer) end end end addEventHandler("onVehicleEnter", getRootElement(), licensecheck)
-
check this: pjs = engineLoadTXD("car/pjs.txd")
-
this is a full code?
-
maybe you use this on serverside?
-
meta.xml please
-
wait, add addEvent("kilLDayZPlayer",true) above addEventHandler