Jump to content

Aibo

Retired Staff
  • Posts

    1,105
  • Joined

  • Last visited

Everything posted by Aibo

  1. Aibo

    1000 Posts.

    i play games for the gameplay/story, not achievements. guess i'll never understand.
  2. Aibo

    1000 Posts.

    and why people care about post count.
  3. 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)
  4. you dont, you only specify fields (columns) that you want to update.
  5. 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.
  6. 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.
  7. 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 )
  8. 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)"
  9. развели тут самп. дети, что ли.
  10. Aibo

    Data

    it is not default race functionality. you'll have to script it yourself. good luck with that, seeing that you assume gui/dx functions to be in server script.
  11. 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 )
  12. because mta/samp crap wasnt there originally, ffs. did you even bother to see?
  13. 1. it is not down 2. it is relevant 3. stop being an ass
  14. well then your problem is that table.insert doesn't return anything. try #thetable after insert and see.
  15. 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/
  16. 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
  17. well it is possible. you're doing something wrong then.
  18. а еще лучше начните сами это что-то делать.
  19. Aibo

    Help help

    nobody is going to help you if you keep that attitude. please behave yourself, or i'll be forced to close your topic.
  20. http://lua-users.org/wiki/TablesTutorial
  21. and what is here to steal? its a generic script for txd/dff replacement.
  22. GaugePosition = { g_ScreenSize[1] - 318, g_ScreenSize[2] - 126 },
  23. если имеются ввиду булки и чай: это стандартная панграмма в виндовс, используемая для просмотра шрифтов. http://ru.wikipedia.org/wiki/%D0%9F%D0% ... 0%BC%D0%B0
×
×
  • Create New...