-
Posts
1,105 -
Joined
-
Last visited
Everything posted by Aibo
-
i play games for the gameplay/story, not achievements. guess i'll never understand.
-
1. you're redefining createMarker function. use some other name 2. thePlayer and ThePlayer will be different variables, Lua is case-sensitive 3. visibleTo is the parameter name, you dont need it, just put the element (getRootElement() or root in this case) there 4. you're adding consoleCreateMarker function as a command handler, but your function is called createMarker (see 1)
-
please elaborate.
-
you dont, you only specify fields (columns) that you want to update.
-
you know that if /debugscript 3 is silent, you'll have to debug yourself? check if events are triggered, check what variables contain, check what is returned from the DB. from quick look i can tell that this line (51): if not Table and #Table == 1 then is absurd and it'll never be true, so your executeSQLInsert is never executed.
-
MTA's account data uses SQLite DB, so you can use getAccountData/setAccountData functions to store data. that is if you dont want to learn SQL yourself. and judging by you asking here and not perusing google to educate yourself — you dont. teaching takes time and time is money. nobody here will waste their time to teach you "everything about SQL". this is a scripting help section, not an IT school.
-
local buttonMarker = createMarker ( 0,0,0, "cylinder", 1.5, 255, 255, 0, 170 ) function showButton(element) if element == localPlayer then nameMenu = guiCreateButton( 0.1, 0.2, 0.3, 0.1, "Саныч лол", true ) end end addEventHandler ( "onClientMarkerHit", buttonMarker, showButton )
-
ffs, if this is your car: <vehicle id="vehicle-bullet" paintjob="3" model="541" plate="Y799UHE" interior="0" dimension="0" color="54,14,0,0" posX="2099" posY="2479.5" posZ="10.5" rotX="0" rotY="0" rotZ="179.99462890625"></vehicle> then you need this id="vehicle-bullet", not "vehicle (Bullet) (1)"
-
развели тут самп. дети, что ли.
-
you'll need getElementID: dealerVehicles = { ["vehicle (Bullet) (1)"] = true } dealerTeams = { [29] = true } function dealerenterVehicle ( player, seat, jacked ) if ( dealerVehicles[getElementID(source)] ) and ( not dealerTeams[getElementModel(player)] ) and ( seat == 0 ) then outputChatBox ( "You aren't dealer , you can't drive this.", player) --and tell the player why cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), dealerenterVehicle )
-
Suggestion for forums! [CLOSE IT PLEASE]
Aibo replied to 12p's topic in Site/Forum/Discord/Mantis/Wiki related
because mta/samp crap wasnt there originally, ffs. did you even bother to see? -
Suggestion for forums! [CLOSE IT PLEASE]
Aibo replied to 12p's topic in Site/Forum/Discord/Mantis/Wiki related
1. it is not down 2. it is relevant 3. stop being an ass -
well then your problem is that table.insert doesn't return anything. try #thetable after insert and see.
-
Suggestion for forums! [CLOSE IT PLEASE]
Aibo replied to 12p's topic in Site/Forum/Discord/Mantis/Wiki related
Stop spamming dude, this is serious. Not a thread where you talk about stupid TV series and paste pages just to say "SAMP is better than MTA". actually he just fucked up my css spoiler idea: http://jsfiddle.net/tQLdC/4/ -
are you sure vehicle is created? you never define GLOBAL_ELEMENTS_TABLE[p] as a table, so it cant insert anything there obviously: function getPlayerElementsTable ( p ) if type(GLOBAL_ELEMENTS_TABLE[p]) ~= "table" then GLOBAL_ELEMENTS_TABLE[p] = {} end return GLOBAL_ELEMENTS_TABLE[p] end
-
well it is possible. you're doing something wrong then.
-
Чего не хватает в MTA:SA, чтобы стать популярнее?
Aibo replied to MX_Master's topic in Russian / Русский
а еще лучше начните сами это что-то делать. -
Suggestion for the community site
Aibo replied to Deagle's topic in Site/Forum/Discord/Mantis/Wiki related
Answer: acknowledged. -
nobody is going to help you if you keep that attitude. please behave yourself, or i'll be forced to close your topic.
-
http://lua-users.org/wiki/TablesTutorial
-
and what is here to steal? its a generic script for txd/dff replacement.
-
GaugePosition = { g_ScreenSize[1] - 318, g_ScreenSize[2] - 126 },
-
если имеются ввиду булки и чай: это стандартная панграмма в виндовс, используемая для просмотра шрифтов. http://ru.wikipedia.org/wiki/%D0%9F%D0% ... 0%BC%D0%B0
