Jump to content

Extremo

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by Extremo

  1. I just noticed this: res = executeSQLInsert ( "playermail", "'" .. playerTo .. ",'" .. message .. "','" .. title .. "', '0', '" .. from .. "'" ) Basically you are missing a ' before the comma at playerTo, so i am guessing that thats the reason why it doesnt work. So, this is how it should be like: res = executeSQLInsert ( "playermail", "'" .. playerTo .. "','" .. message .. "','" .. title .. "', '0', '" .. from .. "'" ) I don't see a problem at your checkmail though , i am not playing mta that long but i've been working before with sql, dunno why it wont work
  2. I don't see a sense of this topic. Excuse me if i am wrong but i've learned 3 languages over "learning by doing" how about doing something, seeing the result and if it doesnt work try again? Look at the scripts. Sometimes scripting isnt really "learning" its just looking at it and having a sorta "click". I can't explain it but when i was learning my first scripting language, i didn't even know forums exist lol. I received a done script by a friend and i was reading it, i think about 60 times, around 40000 lines. And then someday i just got it, its actually really easy to script, if you have the logic thinking behind it. Good luck anyway and as everyone else already said, that what you are requesting above there is actually enough to start a server with, so i am not guessing anybody will give you any resources. Also just to mention, all that listed above takes around a week not a month. Regards, Extremo.
  3. My bad, basically their was no real solution, i had a script error right above "guiSetVisible" and had to fix it, also i tested if it works without calling a event and it doesnt. I would, as 50p said already, highly recommend you guys to use "onClientResourceStart". That was basically the solution.
  4. Thanks for your offer 50p but i find the real gui easier on use tbh. Dunno why, guess its just because i've been scripting so much and its just all logic to me. I actually think yours is even more complicated lol. Anyway, guess this case is solved, i ama edit the topic name.
  5. Already did, you may didnt notice my editing of my first post Thanks, i debug'd my code and found the problem. It was me being a moron.. Good that its not my first time coding/programming lol.
  6. Obvisiously these two lines were just a example, i am using the event onClientResourceStart lol. Edit: Nvm, debug'd my code and found the problem. Stupid me >.<
  7. Sorry for double post but i am guessing you cant change the visibility or either destroy a Image created over the function "guiCreateStaticImage"? is there any other way of creating a image? local RegisOrLoginImage = guiCreateStaticImage(0, 0.03, 0.5, 1, "LogReg.png", true) destroyElement(RegisOrLoginImage) No real success, also: local RegisOrLoginImage = guiCreateStaticImage(0, 0.03, 0.5, 1, "LogReg.png", true) guiSetVisible(RegisOrLoginImage, false) Nothing. The image still appears. Hope theres a other way of creating a image. Also, it could just be a function to create a image on a "guiCreateWindow". Help is appreciated
  8. So, thanks Talidan for your fast reply, theres no real code about this issue yet, i want to make sure that there is a way before i am going to do so. So regarding to your answer i am guessing you can set anything visibile and invisible with it. Thank you for your quick reply, I am going to test this right away
  9. Maybe posting the problem would be better then searching for a alternative. I don't think that theres much of a alternative doing the same then GetTickCount. Unless you want to make a timer and adjust a local value all the time, i dont think so.
  10. Well, all i can see from your picture is that the object should be on a different position and i am not sure how you want to calculate that? Why not getting the position of the first object and adjusting these, then creating the next one? Sorry but i dont get your image either lol.
  11. Alright so i was reading over the wiki and i am new to lua and mta in general. I decided i am going to make a basic gui window and create two tabs at the right side, register and login and thought i would place a image on the left side, its a full screen window. So i got alittle problem. I saw a function to create a static image, but obvisiously if the player is logged in, the gui Window is supposed to be removed and i dont want half of the screen to be filled by this image so basically, i need help about how to remove the image once its created or if there is any other way of creatign that image there? This might help: http://img406.imageshack.us/img406/6827 ... en0023.png so the left side which is empty = image.
  12. Well according to that you want to know how to place a object around a object cosinus and sinus are no good choice. They always require at least two given sides and regarding to your request its basically not the right form? If you are trying to place a object like: :: object :: :: object :: :: object :: :: object :: Then its a perfect choice to use sinus and cosinus, but if i got you right you want to basically do this: :: b i g O ::smallobject:: b :: t c e j Right? If not, could you at least draw a example or anything? it would help.
×
×
  • Create New...