Jump to content

GhostXoP

Members
  • Posts

    402
  • Joined

  • Last visited

Everything posted by GhostXoP

  1. What i mean is, onMarkerHit returns the element that hit the marker, but how would i get the client from the element, to trigger the client's event triggerClientEvent(client, "Event", someFunction)
  2. How can i get the client from a player element? A player triggers a onMarkerHit event, but the event only returns the player element that hit it. Im trying to have a window pop up upon hit, but i need the client from the player to trigger the clients event upon marker hit.
  3. English isn't your first language is it? Id first like to apologize for snapping at you. Its impolite and unprofessional. As for your post, i had expected everyone to believe it was a value being passed as an argument to a function, not as the variable place holder for arguments to be passed to. You probably thought i meant function MyFunction(0) end Ofcourse, numbers cannot be variable names as they represent constant values. What i meant MyFunction(0) I had fixed my problem however, strings in strings, with variables and values got a little confusing and i had cleared it up. Now the user logs in. 0 isnt anything else, if you see 0 in lua, its usually a constant value knowing it cannot name anything other then the index to a table, or just a value being assigned
  4. Nevermind, i have figured a way around what i am looking for. Thank you for your responses.
  5. The column in the table is a NUMBER value, my question was, is it expecting a number string? or number value? 0 or "0" In the tutorials i had seen, TEXT defined that the column would expect TEXT or "text" and NUMBER expecting 0, unless its expecting a "0". Is it expecting ", 0 ," (part of other arguments) or ",".. 0 .."," note, ones a string, the other is a string, a value 0, and other part of the string
  6. I'm inputting a constant value, not a variable the zero above is the equivilant to function myFunction(var) print(var) end myFunction(0)
  7. Your misunderstanding of my simply put question proves to tell the public not to trust you as a scripter for their server. If you don't know what a value is, should you re-read an introduction to Lua? To your off-topic question, 0 is a value. Not a string. "0" is a character, its value is 48. If you read my question and understood it, as per someone who would understand the Lua language, you would know that i asked if SQLite takes a number value, rather then a string value even when stated in the Database table that the type of value should be a number value rather then a string. Second grade enough for you?
  8. From looking at the error.. (part of the string) doesnt work, because even if you specify the value when creating the table in the data base as a NUMBER it still expects a string, so 0 would have to be "0". Correct? P.S. The function using the image above was dbExec Inserting a value into the database, also note that is only part of the string. there is an INSERT INTO etc
  9. I had figured, since my login system utilizes SQLite for storage of user information, it would basically be like MTA's default account system. Would it be recommended for me to go on and use my system, or use MTA's account system
  10. I saw these.. What would they be useful for? Can i just use my own system? Where is information stored? How would i use these in a server where one would login via my login system. Would i then link them to the accounts using these functions? Will these functions hold information about the users weapons, or health?
  11. I come from an OSDev forum, I in fact have created a MS-DOS 2.1 Clone for a project of mine in assembler (to show i know what im doing and had a huge interest in systems design, and have attempted a full OpenGL 2.1 graphics engine which ended because of school). Forum questions were strict and clearness was generally the responsibility of the person asking the question. I understand what you mean, but i will try to be more clear next time. Thanks again
  12. Thank you very much, really. Probably the first one to most of my questions on here. Sorry if my question wasnt clear.
  13. No i do, I want it to start out in the Play game mode, and use my scripts. But if i start in the Play game mode, whether or not i want it to, it will spawn these cars by default. They are not listed in the map file, how do i keep the map from doing this? As far as i know, in Play game mode, it spawns cars in default spots where the user spawns by default. How do i remove the cars? (They arent in the map file) Straight to the point, i know how to get it to use my scripts while in the Play game mode, but no matter what map i use while in the play game mode, it spawns default cars at the default spawn positions. I want the play game mode, but how do i get rid of the cars that spawn by default? These cars are not in the map file
  14. Sorry if my question isnt clear. What i mean is, i want to be able to make the map in the map editor, but be able to use it in the Play game mode. However, When i initialize a server using this map, it runs it in play game mode, and spawns default cars. How do i get it not to spawn those cars? The map file only lists my changes torward it, but not the cars it automatically spawns
  15. Thanks for the fast response Would this remove the cars that spawn by default by the map?
  16. Is there a way i can incorporate my scripts into a map, and have the map start out like a "play" game mode map, but without the Play game mode cars spawning everywhere. (like grove street how it spawns the two monster trucks) Or is there a function that removes all cars spawned by the game mode on the map, so i may place mine instead
  17. The functions you have posted are good enough, i will see what i can do with them. Seeing the key words TXD and TFF, i will look up tools that generate them. Thank you for responding. EDIT: actually, i may resort to using already made objects. This for example has a lot of vehicle objects. http://www.gta.cz/eng/san-andreas/artic ... ls-of-cars
  18. Before i ask, id like to apologize for posting so much on this forum, as i'm sure there may be others who have questions with a better point. If its getting on anyone's nerves id be more then happy to tone it down My question is, what tools would i need to customize my own GTA character to replace an already existing character within Multi theft auto? Links to Tools and or Tutorials on this are more then welcomed. Thank you for reading.
  19. My question may be a little unclear. What i mean is, How many weapons may a user have on him/her during game play, not use at once
  20. How many weapons may one player have at one time?
  21. Is there a way i can get the Users IP address?
×
×
  • Create New...