-
Posts
285 -
Joined
-
Last visited
Everything posted by dugasz1
-
Hello! I've got a problem always whit buttons for a long time. When i create a guiWindow whit some button and when i click on the window (only the window not to the button) the mta detect like it was one of the buttons. For example if the mta thinks that the exit buton i click everywhere in the window(only the window not on a button) it's start the close func and the window will be closed. Why?
-
setPedAnimation(i10, "ped", "CAR_sit", 1000, true, true) Try like this. Maybe
-
hmm... use this SQL code it will made it
-
This code must make this table, but i think you haven't got the sql resources. Then go in phpmyadmin open a database, click to the sql menu and paste it and run: CREATE TABLE IF NOT EXISTS `3dtext` ( `textID` int(10) NOT NULL AUTO_INCREMENT, `text` text COLLATE utf8_hungarian_ci NOT NULL, `x` float NOT NULL, `y` float NOT NULL, `z` float NOT NULL, `interior` int(10) NOT NULL, `dimension` int(10) NOT NULL, PRIMARY KEY (`textID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci AUTO_INCREMENT=1 ;
-
Hellosztok! Ki szokta aktívan nézelődni/segíteni/kérdezni a fórumon? (Kíváncsi vagyok hányan vagyunk kb:) Aki igen légyszíves hadjon egy kommentet
-
local ped_q = mysql_query(handler,"SELECT * FROM npc") -- you need query all the npcs if (ped_q) then while true do -- do it whit all the npc local ped_assoc= mysql_fetch_assoc(kocsi_q) if (not ped_assoc) then break end local pedtext = "ped" local thePed = pedtext .. ped_assoc['ID'] -- this isn't the ped model id just an auto increted number in mysql. Whit this you can identify your ped thePed = createPed ( ped_assoc['model'], ped_assoc['x'], ped_assoc['y'], ped_assoc['z'] ) setElementData (thePed, "idPed", ped_assoc['ID']) -- i offer you to set in the ped his id then you can always identify it end mysql_free_result(kocsi_q) -- Free the result end
-
I think whit this event it is solvable. https://wiki.multitheftauto.com/wiki/OnClientKey -- Check when player push space or releasing it https://wiki.multitheftauto.com/wiki/ToggleControl -- Whit it you can disable the sprint
-
Now i can exemine after the first space the letter but i can't exemine more space How can i exemine after all space and if all caputal letter return whit true if 1 or more after space letter isn't capital the return false. function capitalAfterSpace ( str ) s,e = string.find(str,"%s") outputChatBox("kezd"..s.." "..e) afterSpace = string.sub(str,s+1,e+1) --outputChatBox(afterSpace) return (afterSpace == afterSpace:upper () ) end function chat() -- test outputChatBox(tostring(capitalAfterSpace("Test Test"))) -- return whit true outputChatBox(tostring(capitalAfterSpace("Test test"))) -- return whit false outputChatBox(tostring(capitalAfterSpace("Test Test Test"))) -- return whit true outputChatBox(tostring(capitalAfterSpace("Test Test test"))) -- return whit true end addCommandHandler("a",chat)
-
yeah, i think about this but i hope it to i can make it whit down and up click
-
Whit onClientMouseEnter i know which gui he entered but how can i check his clicked? Can you write me an example?
-
with pleasure
-
Hello! I wanna make my own inventory system but i get a little problem. I wanna you can move you items, when your state "down" you pick up the item and draging it and when the state is "up" you put it a slot or drop it. The problem is i want to make it whit addEventHandler ( "onClientGUIClick", getRootElement(), addLabelOnClick ) event but the wiki write this Please note currently only the up state is supported. and my plane is failed. I thinking about addEventHandler ( "onClientClick", getRootElement(), addLabelOnClick ) event but whit it i can't call whit "source" the gui (all slot is a guiImage and set a number in it for all slots whit setElementData to i can reference it) Any idea how i can made it?
-
I'm useing mySQL module then i can write example for you whit it First install it: https://wiki.multitheftauto.com/wiki/Mysql And you need a mysql server(xammp for homemade server) host = "127.0.0.1" -- host ( this is the Localhost now) username = "root" -- Database Username password = "" -- Database Password (in xammp no pass) db = "accounts" -- Database ( Where you got your tables ) handler = mysql_connect( host, username, password, db ) function getPlayerDatasFromSQL () pName = getPlayerName(source) playerData_q = mysql_query(handler,"SELECT * FROM accounts WHERE AccountName = '"..pName.."';") playerData_assoc = mysql_fetch_assoc(playerData_q) -- Whit it you can use the queryed datas from the player setElementHealth ( source, playerData_assoc['hp'] ) -- Use like this end addEventHandler ( "onPlayerJoin", getRootElement(), getPlayerDatasFromSQL)
-
outputChatBox ("Introdu ID-ul !",thePlayer,255,0,0,false) Maybe like this
-
Can you send me a site or just some id ?
-
And exist object what isn't in the simple word?
-
ohh and how can i check after space start whit capital word?
-
hmmm Sorry i don't understand what is it do?
-
But if i change for an example a bush, in the original map's bush is change too? If yes exist that model what it isn't in the original word?
