Jump to content

Ride1234

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by Ride1234

  1. Hello, i'm scripter-beginner. I can't understand in which case i must use "source" in which "player" , "client".. And how to learn when what must be used?
  2. I want to make a skin selection when player connects to server. It was a AddPlayerClass function in sa-mp, which adds a skin and allows to select it after connect, but I haven't founded its analog in MTA. Can anybody help me?
  3. Thank you, I solve it by the same way...
  4. karlis, thank you. I have a code: local sVar1 = { } local sVar2 = { } local sVar3 = { } ... sVar1[source] = 1 sVar2[source] = 2 sVar3[source] = 3 ... function MyFunc( source, sVar1[source], sVar2[source] , sVar3[source] ) ... end But, when I try to compile it, i get: mymode.lua:62: ')' expected near '[' 62 line in mode, and 9 line here(function MyFunc) What is wrong? How to create a function with array in argument?
  5. I have a variable, its value gets from gui menu, and assigns to all players on the server, but I want that each player have his own value of this variable. Tell me please how to create a simple array in Lua, how to assign a varible to it, and how to use it in 'if...then' constructions. p.s. sorry for bad english.
×
×
  • Create New...