Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.


Témák - Koko ((Maxi))

Oldalak: [1] 2
1
Segítségkérés / TXD, Skin hiba
« Dátum: 2017. Július 31. - 19:36:17 »
Sziasztok! Adott egy skin mod: 
 


   

      

  •             https://data.hu/get/10659065/fbi.rar
             

  •          

  •             Az a probléma, hogy amikor betöltöm akkor full fehér lesz a skin, próbáltam másik txd-vel, másikba átrakni a textúrákat, átméretezni. Sehogy nem sikerült.
             

  •       

2
Segítségkérés / Light, (fény)
« Dátum: 2017. Július 13. - 15:50:05 »
Sziasztok! Egy olyan problémám van, hogy nem sikerül light-ot készíteni. Ha valaki tudna benne segíteni azt megköszönném.
 
Ezzel próbálkoztam de sajna nem sikerült:
 
.https://wiki.multitheftauto.com/wiki/CreateLight

3
Segítségkérés / login panel, html-el
« Dátum: 2017. Június 21. - 13:05:47 »
Sziasztok!
 
Elkezdtem egy login panelt készíteni. Az egész panel html+css-el van készítve, be is hozza meg minden. Viszont abba kérnék segítséget, hogy miként tudom lekérni a szövegdobozba írt szöveget? Próbáltam gui-val de ha félre kattintok akkor eltűnik a textbox, ezért gondoltam arra, hogy html-es textboxot kéne lekérni.

4
Segítségkérés / Változók, hozzáadás, elvonás
« Dátum: 2017. Február 19. - 12:11:11 »
Sziasztok! Azt hogy lehet megcsinálni hogy ha hozzáadok a változóhoz 1-et egy gomb megnyomásakor és ha mégegyszer megnyomom de adja hozzá?

5
Segítségkérés / Dashboard, kattintás
« Dátum: 2017. Február 19. - 11:38:47 »
Sziasztok! Egy dashboard készítése közben elakadtam! Nem sikerült megcsinálnom, hogy csak akkor tudjak rákattintani a gombra, ha a dashboard elővan hozva és minden gombnál más dolgot hozzon elő. Tudna valaki segíteni?
 

local screenW, screenH = guiGetScreenSize()
local font = dxCreateFont( \"font/myriadproregular.ttf\", 11 )
local font1 = dxCreateFont( \"font/OpenSansB.ttf\", 12 )
local font2 = dxCreateFont( \"font/OpenSans.ttf\", 12 )
local monitorSize = {guiGetScreenSize()}
local panelSize = {500, 400}
local panelX, panelY = monitorSize[1]/2-panelSize[1]/2, monitorSize[2]/2-panelSize[2]/2
local mutat = false
local jelenAblak = 0
function isCursorOnBox(xS,yS,wS,hS)
if(isCursorShowing()) then
   XY = {guiGetScreenSize()}
   local cursorX, cursorY = getCursorPosition()
   cursorX, cursorY = cursorX*XY[1], cursorY*XY[2]
   if(cursorX >= xS and cursorX <= xS+wS and cursorY >= yS and cursorY <= yS+hS) then
      return true
   else
      return false
   end
end   
end
function dobozbaVan(dX, dY, dSZ, dM, eX, eY)
if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then
   return true
else
   return false
end
end
 
 
function rajzol()
local id = getElementData(localPlayer, \"char:id\")
local name = getElementData(localPlayer, \"acc:name\")
local admin = getElementData(localPlayer, \"acc:admin\")
local penz = getElementData(localPlayer, \"char:money\")
local ig_name = getElementData(localPlayer, \"char:name\")
local pp = getElementData(localPlayer, \"char:pp\")
local skin = getElementData(localPlayer, \"char:skin\")
local vehSlot = getElementData(localPlayer, \"char:vehSlot\")
local garageSlot = getElementData(localPlayer, \"char:houseSlot\")
local jatszottperc = getElementData(localPlayer, \"char:playedTime\")
--if show then
--addEventHandler(\"onClientClick\", root, semmisem)
--
--else
--end
 
   dxDrawText(\"Név:\", panelX+100, panelY-100, 400, 400, tocolor(255,255,255), 1, font1, \"center\", \"center\", true, true, true, true)         
   dxDrawText(\"#d8a84e\"..ig_name, panelX+200, panelY-100, 400, 400, tocolor(255,255,255), 1, font2, \"center\", \"center\",  true, true, true, true)         
   dxDrawText(\"Készpénz:\", panelX+143, panelY-50, 400, 400, tocolor(255,255,255), 1, font1, \"center\", \"center\", true, true, true, true)         
   dxDrawText(\"PP:\", panelX+88, panelY, 400, 400, tocolor(255,255,255), 1, font1, \"center\", \"center\", true, true, true, true)         
   dxDrawText(\"Skin ID:\", panelX+122, panelY+50, 400, 400, tocolor(255,255,255), 1, font1, \"center\", \"center\", true, true, true, true)         
   dxDrawText(\"#d8a84e\"..skin, panelX+220, panelY+50, 400, 400, tocolor(255,255,255), 1, font2, \"center\", \"center\", true, true, true, true)         
   dxDrawText(\"#d8a84e\"..pp..\"#ffffffPP\", panelX+145, panelY, 400, 400, tocolor(255,255,255), 1, font2, \"center\", \"center\", true, true, true, true)         
   dxDrawText(\"#4286f4\"..penz..\" #ffffff$\", panelX+260, panelY-50, 400, 400, tocolor(255,255,255), 1, font2, \"center\", \"center\",  true, true, true, true)         
   --dxDrawText(\"#4286f4\"..penz..\"#ffffff$\", panelX+260, panelY-50, 400, 400, tocolor(255,255,255), 1, font2, \"center\", \"center\",  true, true, true, true)         
   dxDrawText(\"Admin:\", panelX+120, panelY+100, 400, 400, tocolor(255,255,255), 1, font1, \"center\", \"center\",  true, true, true, true)         
   --dxDrawText(\"Autó slotok:\", panelX+120, panelY+100, 400, 400, tocolor(255,255,255), 1, font1, \"center\", \"center\",  true, true, true, true)         
   dxDrawText(\"Játszott percek:\", panelX+190, panelY+150, 400, 400, tocolor(255,255,255), 1, font1, \"center\", \"center\",  true, true, true, true)         
   dxDrawText(\"#41f48f\"..jatszottperc..\" #ffffffperc\", panelX+380, panelY+150, 400, 400, tocolor(255,255,255), 1, font1, \"center\", \"center\",  true, true, true, true)         
   
   
   
   dxDrawImage(panelX-170, panelY-77, 24, 24, \"image/info.png\", 0, 0, 0, tocolor(255, 255, 255, 200), true)
   dxDrawImage(panelX+50, panelY-77, 24, 24, \"image/car_garage.png\", 0, 0, 0, tocolor(255, 255, 255, 200), true)
   dxDrawImage(panelX+260, panelY-77, 24, 24, \"image/admin.png\", 0, 0, 0, tocolor(255, 255, 255, 200), true)
   dxDrawImage(panelX+476, panelY-77, 24, 24, \"image/settings.png\", 0, 0, 0, tocolor(255, 255, 255, 200), true)
   --dxDrawImage(panelX-170, panelY-77, 24, 24, \"image/info.png\", 0, 0, 0, tocolor(255, 255, 255, 150), true)
        dxDrawRectangle((screenW - 847) / 2, (screenH - 481) / 2, 847, 481, tocolor(0, 0, 0, 247), false) --bg
        dxDrawLine(297 - 1, 173 - 1, 297 - 1, 199, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(498, 173 - 1, 297 - 1, 173 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(297 - 1, 199, 498, 199, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(498, 199, 498, 173 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(512 - 1, 173 - 1, 512 - 1, 199, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(713, 173 - 1, 512 - 1, 173 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(512 - 1, 199, 713, 199, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(713, 199, 713, 173 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(727 - 1, 173 - 1, 727 - 1, 199, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(928, 173 - 1, 727 - 1, 173 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(727 - 1, 199, 928, 199, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(928, 199, 928, 173 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(943 - 1, 173 - 1, 943 - 1, 199, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1144, 173 - 1, 943 - 1, 173 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(943 - 1, 199, 1144, 199, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1144, 199, 1144, 173 - 1, tocolor(0, 0, 0, 255), 1, false)
   
      --dxDrawText(\"\", 89, 383, 180, 444, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false)
      --dxDrawText(\"\", 89, 383, 180, 444, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false)
      --dxDrawText(\"\", 89, 383, 180, 444, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false)
      dxDrawRectangle(panelX-173, panelY-77, 201, 26, tocolor(0, 0, 0, 195))
      dxDrawRectangle(panelX+42, panelY-77, 201, 26, tocolor(0, 0, 0, 195), false) --2. gomb
      dxDrawRectangle(panelX+257, panelY-77, 201, 26, tocolor(0, 0, 0, 195), false) --3. gomb
      dxDrawRectangle(panelX+473, panelY-77, 201, 26, tocolor(0, 0, 0, 195), false) --4. gomb
   dxDrawImage(panelX-145, panelY-10, 128, 256, \"files/Skinek/\"..getElementModel(localPlayer)..\".jpg\", 0, 0, 0, tocolor(255, 255, 255, 255)) ---<[ Skin kép ]>---
   dxDrawImage(panelX-151, panelY-17, 256, 512, \"files/Skinek/frame.png\", 0, 0, 0, tocolor(0, 0, 0, 255)) ---<[ Skin kép ]>---
      
      
      
if(isCursorOnBox(panelX-173, panelY-77, 201, 26)) then   
dxDrawRectangle(panelX-173, panelY-77, 201, 26, tocolor(60, 114, 201), false)
end
if(isCursorOnBox(panelX+42, panelY-77, 201, 26)) then   
dxDrawRectangle(panelX+42, panelY-77, 201, 26, tocolor(60, 114, 201), false) --2. gomb
end
if(isCursorOnBox(panelX+257, panelY-77, 201, 26)) then   
dxDrawRectangle(panelX+257, panelY-77, 201, 26, tocolor(60, 114, 201), false) --3. gomb
end
if(isCursorOnBox(panelX+473, panelY-77, 201, 26)) then   
dxDrawRectangle(panelX+473, panelY-77, 201, 26, tocolor(60, 114, 201), false) --4. gomb
end
 
end
 

function as()
end
 
 
-------------------------Klikkelések-----------------------------------      
   
function menuClick(gomb,stat,x,y)
if jelenAblak == 1 then
if gomb == \"left\" and stat == \"down\" then

if (dobozbaVan(panelX+473, panelY-77, 201, 26, x, y)) then
   outputChatBox(\"#ffffffSettings-re kattoltál!\", 124, 197, 118, true)
end
if (dobozbaVan(panelX+257, panelY-77, 201, 26, x, y)) then
   outputChatBox(\"#ffffffAdmin-ra kattoltál!\", 124, 197, 118, true)
end
if (dobozbaVan(panelX+42, panelY-77, 201, 26, x, y)) then
   outputChatBox(\"#ffffffVagyon-ra kattoltál!\", 124, 197, 118, true)
end
if (dobozbaVan(panelX-173, panelY-77, 201, 26, x, y)) then
   outputChatBox(\"#ffffffInfo-ra kattoltál!\", 124, 197, 118, true)
end
end
end


end
 
addEventHandler(\"onClientClick\", root, menuClick)
 
   
bindKey(\"home\", \"down\", function()
addEventHandler(\"onClientRender\", root, rajzol)
toggleControl(\"change_camera\",false)
jelenAblak = jelenAblak + 1
addEventHandler(\"onClientClick\", root, menuClick)
 
end)
 
bindKey(\"backspace\", \"down\", function()
--JelenAblak = JelenAblak - 1
removeEventHandler(\"onClientRender\", root, rajzol)
toggleControl(\"change_camera\",true)
end)

 
 

6
Segítségkérés / Klikkelés
« Dátum: 2017. Február 18. - 19:02:08 »
Sziasztok! Egy dashboard készítése közben elakadtam! Nem sikerült megcsinálnom, hogy csak akkor tudjak rákattintani a gombra, ha a dashboard elővan hozva. Mielőtt először megnyitom működik, de miután bezárom és a képernyőre kattintok, ugyanúgy kiírja a szöveget! Mi lehet a gond?

7
Segítségkérés / Fénycsóva bug
« Dátum: 2017. Február 15. - 17:56:12 »
Sziasztok! Az lenne a kérdésem, hogy a képen látható bug szerűséget, hogyan lehetne eltünteni?
/monthly_2017_02/mta-screen_2017-02-15_17-52-05.png.dc5c2a6c7dbb50ec54cb5d8a0f27da46.png\" class=\"ipsAttachLink ipsAttachLink_image\">

8
Segítségkérés / Handling
« Dátum: 2017. Január 31. - 18:28:43 »
Sziasztok!  Olyan gondom lenne, hogy az autóknál amikor a végsebességet akarom állítani, akkor hiába a maxVelocity-t rakom magasabbra nem megy feljebb, ha az engineAcceleration akkor feljebb megy a sebesség de akkor a gyorsulás is. Ez ellen mit lehet tenni?

9
Segítségkérés / Pótkocsi lekapcsolása
« Dátum: 2017. Január 28. - 15:56:27 »
Sziasztok! Azt hogy lehet megvalósítani, hogy a kamionról a pótkocsit lekapcsolja az adott command vagy bindkey? Nem törölni szeretném csak egyszerűen lecsatolni hogy ne húzza maga után.

10
Segítségkérés / Képváltás kattintásra
« Dátum: 2017. Január 26. - 19:28:54 »
Sziasztok! Olyan kérdésem lenne, hogyan lehet megcsinálni, hogy egy képet csinálok dx-el és amikor megnyomom mondjuk a jobbra nyilat akkor a következő képet hozza be?

11
Segítségkérés / Rádió hangszín megjelenítés
« Dátum: 2017. Január 08. - 11:56:54 »
Sziasztok! Azt hogy lehet megcsinálni, hogy amikor az autóban megjelenik a rádió akkor a zene ütemére egy hangszín megjelenítő mozogjon? Mint SeeMTA v3-on?

12
Segítségkérés / Variáns, bodykit
« Dátum: 2016. December 03. - 15:37:51 »
Sziasztok!
Van egy External Gaming modom, de sehol nem találom benne a variánsokat (bodykit), az MTA letöltött kliens oldali fájljai közt se és a SeeMTA kliens oldali fájljai közt se. Hol lehetnek?

13
Segítségkérés / Tuning-system-be paintjob
« Dátum: 2016. November 01. - 21:18:46 »
sziasztok! hogy lehetne a tuning systembe beleirni, hogy paintjobot tegyen rá?

14
Segítségkérés / MySql Probléma
« Dátum: 2016. Október 24. - 21:06:13 »
Sziasztok, az lenne a problémám, hogy van egy mysql összekötető scriptem, jók az adatok, minden ki van töltve de ezt irja folyton a console-ba: [2016-10-24 20:53:13] ERROR: sql/connection.lua:17: attempt to call global \'mysql_connect\' (a nil value)
több scriptel is próbáltam de akkor is ez a helyzet. Házi szerón, és

 hostolt szerón is ez van. Mi lehet a gond?
-- connection settings
local hostname = \"127.0.0.1\"
local username = \"srd2555\"
local password =  \"(ide a mysql es jelszóm van irva)\"
local database = \"srd2555\"
local port =  3306
-- global things.
local MySQLConnection = nil
local resultPool = { }
local sqllog = false
local countqueries = 0
-- connectToDatabase - Internal function, to spawn a DB connection
function connectToDatabase(res)
--MySQLConnection = mysql_connect(hostname, username, password, database, port)
MySQLConnection = mysql_connect(\"127.0.0.1\", \"srd2555\", \"(ide a mysql es jelszóm van irva)\", \"srd2555\", 3306)
if (not MySQLConnection) then
if (res == getThisResource()) then
   cancelEvent(true, \"Cannot connect to the database.\")
end
return nil
end
return nil
end
addEventHandler(\"onResourceStart\", getResourceRootElement(getThisResource()), connectToDatabase, false)
-- destroyDatabaseConnection - Internal function, kill the connection if theres one.
function destroyDatabaseConnection()
if (not MySQLConnection) then
return nil
end
mysql_close(MySQLConnection)
return nil
end
addEventHandler(\"onResourceStop\", getResourceRootElement(getThisResource()), destroyDatabaseConnection, false)
-- do something usefull here
function logSQLError(str)
local message = str or \'N/A\'
outputDebugString(\"MYSQL ERROR \"..mysql_errno(MySQLConnection) .. \": \" .. mysql_error(MySQLConnection))
exports[\'logs\']:logMessage(\"MYSQL ERROR :O! [QUERY] \" .. message .. \" [ERROR] \" .. mysql_errno(MySQLConnection) .. \": \" .. mysql_error(MySQLConnection), 24)
end
function getFreeResultPoolID()
local size = #resultPool
if (size == 0) then
return 1
end
for index, query in ipairs(resultPool) do
if (query == nil) then
   return index
end
end
return (size + 1)
end
------------ EXPORTED FUNCTIONS ---------------
function ping()
if (mysql_ping(MySQLConnection) == false) then
-- FUU, NO MOAR CONNECTION
destroyDatabaseConnection()
connectToDatabase(nil)
if (mysql_ping(MySQLConnection) == false) then
   logSQLError()
   return false
end
return true
end
return true
end
function escape_string(str)
if (ping()) then
return mysql_escape_string(MySQLConnection, str)
end
return false
end
function query(str)
if sqllog then
exports[\'logs\']:logMessage(str, 24)
end
countqueries = countqueries + 1
if (ping()) then
local result = mysql_query(MySQLConnection, str)
if (not result) then
   logSQLError(str)
   return false
end
local resultid = getFreeResultPoolID()
resultPool[resultid] = result
return resultid
end
return false
end
function unbuffered_query(str)
if sqllog then
exports[\'logs\']:logMessage(str, 24)
end
countqueries = countqueries + 1
if (ping()) then
local result = mysql_unbuffered_query(MySQLConnection, str)
if (not result) then
   logSQLError(str)
   return false
end
local resultid = getFreeResultPoolID()
resultPool[resultid] = result
return resultid
end
return false
end
function query_free(str)
local queryresult = query(str)
if  not (queryresult == false) then
free_result(queryresult)
return true
end
return false
end
function rows_assoc(resultid)
if (not resultPool[resultid]) then
return false
end
return mysql_rows_assoc(resultPool[resultid])
end
function fetch_assoc(resultid)
if (not resultPool[resultid]) then
return false
end
return mysql_fetch_assoc(resultPool[resultid])
end
function free_result(resultid)
if (not resultPool[resultid]) then
return false
end
mysql_free_result(resultPool[resultid])
table.remove(resultPool, resultid)
return nil
end
-- incase a nub wants to use it, FINE
function result(resultid, row_offset, field_offset)
if (not resultPool[resultid]) then
return false
end
return mysql_result(resultPool[resultid], row_offset, field_offset)
end
function num_rows(resultid)
if (not resultPool[resultid]) then
return false
end
return mysql_num_rows(resultPool[resultid])
end
function insert_id()
return mysql_insert_id(MySQLConnection) or false
end
function query_fetch_assoc(str)
local queryresult = query(str)
if  not (queryresult == false) then
local result = fetch_assoc(queryresult)
free_result(queryresult)
return result
end
return false
end
function query_rows_assoc(str)
local queryresult = query(str)
if  not (queryresult == false) then
local result = rows_assoc(queryresult)
free_result(queryresult)
return result
end
return false
end
function query_insert_free(str)
local queryresult = query(str)
if  not (queryresult == false) then
local result = insert_id()
free_result(queryresult)
return result
end
return false
end
function escape_string(str)
return mysql_escape_string(MySQLConnection, str)
end
function debugMode()
if (sqllog) then
sqllog = false
else
sqllog = true
end
return sqllog
end
function kapcsolatCallback()
if(MySqlCsatlakozas) then
return MySqlCsatlakozas
else
return nil
end
end
function returnQueryStats()
return countqueries
-- maybe later more
end

15
Segítségkérés / váltásnál hang, paintjob modolt autóra
« Dátum: 2016. Október 22. - 19:06:02 »
Az lenne az 1. kérdésem, hogyan lehetne modolt paintjobot rakni? Alap autóra tudok de a letöltött és bemodoltra sajnos nem.
A 2. pedig, hogy hogyan lehetne megoldani hogy az autó váltáskor (turbo) hangot adjon ki?
 Válaszokat előre is köszönöm :D

Oldalak: [1] 2
SimplePortal 2.3.7 © 2008-2024, SimplePortal