Jump to content

Kenix

Retired Staff
  • Posts

    4,121
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kenix

  1. if isElement( pVehicle ) then destroyElement( pVehicle ) end pVehicle = createVehicle( tonumber ( guiGetText( source ) ), -1951.6552734375, 263.078125, 35.46875 ) ? P.S I say more time .. Can you tabulate code?
  2. Kenix

    Travelling

    You can create object and attach object to vehicle and move it. createObject attachElements moveObject
  3. Also use warpPedIntoVehicle with timer.
  4. Ok. Your code wrong, because thePlayer is nil. You should use source. https://wiki.multitheftauto.com/wiki/RU/Resource:Race P.S Tabulate your code, please!
  5. https://wiki.multitheftauto.com/wiki/Cli ... nux_Manual ?
  6. https://community.multitheftauto.com/index.php?p= ... ls&id=4626 https://community.multitheftauto.com/index.php?p= ... ls&id=4616
  7. P.S I need make TUT about tabulation, i guess.
  8. OFFTOPIC: Again you not tabulate code I gave you link. Why you not read? destroyElement
  9. Никто не будет писать код за тебя. Ссыль кинул на доки/мануалы по Lua. Вперёд!
  10. How to tabulate code ? http://en.wikipedia.org/wiki/Programming_style
  11. function 'createBlipAttactedTo' not exists Also, why you make variable 'playerblip' local? P.S Tabulate your code please!
  12. Kenix

    Question !!

    I can't explain this, because it's unexplained. I don't understand what you're doing. I try playerst[uPlayer] = setTimer( setPlayerTeam, 100, 1, uPlayer, getTeamFromName( team[ math.random( #teams ) ] ) ) Cut getTeamFromName( team[ math.random( #teams ) ] ) team is userdata NOT TABLE!! Also getTeamFromName Have only one argument and only STRING. local teamP = teams[source] source = resource, so index is nil setElementModel ( uPlayer, teamP.skin ) Same, teamP is nil for weapon, ammo in pairs (teamP.weapons) do Same ^^ Please learn lua! viewtopic.php?f=148&t=40809
  13. Kenix

    Lights

    viewtopic.php?f=148&t=40809 https://wiki.multitheftauto.com/wiki/Scr ... troduction
  14. Kenix

    Question !!

    Your code is totally wrong.
  15. Это не хрень. Это LOD http://ru.wikipedia.org/wiki/Level_of_Detail В мап едиторе можно спокойно узнать LOD модели.
  16. Change this lines ( sql/mysql.lua )( 27-32 ) local server = get( "server" ) or "localhost" local user = get( "user" ) or "root" local password = get( "password" ) or "" local db = get( "database" ) or "mta" local port = get( "port" ) or 3306 local socket = get( "socket" ) or nil
  17. viewtopic.php?f=148&t=40809 https://wiki.multitheftauto.com/wiki/Scr ... troduction Go ahead!
  18. You need change connection to your db.( sql resource )
  19. Kenix

    How

    outputChatBox
  20. Kenix

    a Code?

    Maybe you mean event? onGamemodeMapStop https://wiki.multitheftauto.com/wiki/Mapmanager
  21. Try http://multitheftauto-modules.googlecod ... _mysql.dll I had the same problem.
  22. isLineOfSightClear В аргументе ignoredElement укажи педа.
×
×
  • Create New...