Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. This is MySQL module's bug on Windows. It will crash if it'll fail to connect. It should work fine on *UNIX operating systems. So, be aware of this.
  2. I suggest you read debugging tutorials. Your errors are the most frequent errors your scripts will get... You need to know what they mean and how to fix them... It's NOT hard, just follow the tutorials: - https://wiki.multitheftauto.com/wiki/Debugging - http://robhol.net/guide/basics/?p=13
  3. This is not a bug. This is a limit set by MTA due to other unpleasant issues it's involved in. I can't remember what exactly was the problem with too far objects but I can assure you this is not a bug.
  4. The error tells you that winsSRtoDB is simply nil (the variable doesn't exist). Also, where is stats_endRace function called from?
  5. Debug spawnPilotFull function to see what spawn[ theType ][ airport ] is. BTW, line 11, tables start with 1 not 0. Of course you can make assign values to 0 but it will not be detected by ipairs(), pairs() and #.
  6. Do you get any errors/warnings? Maybe try to warp the ped with a timer. setTimer( warpPedIntoVehicle, 100, 1, ped, vehicle, 1 );
  7. As I said, there are a few ways to workaround and I chose MTA accounts because it's simple and every resource can easily get money from MTA accounts. What has got .xml to do with SQLite? I think you have no idea what "data types" are and don't read what I've written in my previous posts or you just act a noob.
  8. It's been said once. Your $6billion is greater than $2147483647. Querying such table gives unexpected results. 1426701349 is less than 2147483647, so it shouldn't be a problem. Hmm, possible i know why Playsinator had this question: If i seen correctly, there is no marker inside the Bank-interior?! Hmm, weird thing... I'll need to debug it even more. I've always used ATM (outside, interior 0) and it worked fine, so please use it until the in-existent banks bug is fixed.
  9. executeSQLDropTable deletes a table.
  10. What do you mean "change the nicknames on banned"? You banned players and you don't want players to use the banned nicknames?
  11. OK, I've uploaded new version (2.2) which should work like a charm now. Get it here and read the "IMPORTANT!!!" description!: https://community.multitheftauto.com/index.html?p ... ails&id=54
  12. 50p

    Spawn Point

    Hey thanks very useful you think this might work? addCommandHandler("chilliad", myFunction) function consoleSetPlayerPosition ( source, chilliad,343,1, 43 ) setElementPosition ( source, 234,1, 4 ) end addCommandHandler ( "setpos", consoleSetPlayerPosition ) No, it won't work. 1. What is the first line (addCommandHandler) doing there? Nothing, unless you have myFunction somewhere above that you didn't show us here. 2. Making new function's parameters is not passing arguments. 3. NEVER name parameters source even for command handlers. You don't want that, believe me. Basically, I think you need to get some more basic knowledge... Visit these 2 links: - https://wiki.multitheftauto.com/index.ph ... troduction - http://robhol.net/guide/basics
  13. Negative money was caused by giving player too much money. For instance, try to give yourself 1000000000 and you'll get -99999999. Also as Gamesnert said, the max INT in SQLite is 2,147,483,647. I didn't want to limit people with that amount. There were a few ways to fix it: - make a limit of how much money users can save (that is not a good idea) - remake a bank table in registry.db with balance column of type TEXT (which in SQLite can store up to 2GB of text, that's 2 billion of characters) - remake a bank table in registry.db with balance column of type BIGINT (which in SQLite can store number up to 9,223,372,036,854,775,807) - move all bank accounts to accounts.xml I think the last one was the most suitable and easier for other resources to get users bank balance. Simply: getAccountData( getPlayerAccount( "username" ), "bank.balance" ); -- of course that's after checking if player's account is not quest account
  14. Any news? Yes. I changed from SQLite DB, back to accounts system since they work in 1.0. I just want to run it for some time and see if people still get problems with it. It should be out this weekend.
  15. Use https://wiki.multitheftauto.com/index.ph ... AttachedTo instead.
  16. 50p

    Edit race script.

    Then you will never get what you want. We help here, not make things for you at least "for free".
  17. 50p

    Edit race script.

    Why would you want this? It wouldn't be race anymore. To let players enter/exit vehicles, open file "race_client.lua" and comment lines: 1155 and 1156.
  18. I don't know what you're talking about. Well, i mean the X, Y and Z-Coordinates of the entry etc. The coordinates of the banks. And then i yust want the code to save the money to the bank. Thanks Playsi You've got the code... you can find it yourself... Didn't you read README.txt? I'll try this.
  19. 50p

    help on a bombshop

    I see you have a custom event which is clientSetTimeBomb. - Do you trigger it from client script? - How do you trigger that event? (Show the line of code) - Where do you get nil? (which line?) - Do you have a text box where user types in the time? If so, why don't you send text from that text box to server with triggerServerEvent? Give more info. Do you even know what parameters addCommandHandler needs? Use wiki, PLEASE. There are a few ways of storing data. You can use setElementData or tables. setElementData( somePlayer, "bomb_time", 12345 ); -- or someTable = { } someTable[ somePlayer ] = 12345; -- then use one of them, getElementData or that table local time = someTable[ somePlayer ]; -- or local time = getElementData( somePlayer, "bomb_time" ); setTimer( blowVehicle, time, 1, vehicle );
  20. 50p

    help on a bombshop

    What's the problem then? You know how to arm the bomb (you have a function for it) so make a gui element call that function. Because that function is server-side, use triggerServerEvent to... well, trigger server event which will call that function. I don't see anything difficult that you couldn't do since you use triggerClientEvent.
  21. I don't know what you're talking about. Can you tell me how to reproduce the negative money bug? I have never had that problem.
  22. https://community.multitheftauto.com/index.html?p ... w&pic=1094
  23. Thanks for comments/suggestions. I must inform you that I just started (Monday, 21st) college. We haven't started doing any proper coursework yet but from what my lecturer said, we won't have much free time. My life is so different now than it was a few weeks ago. I'll try to keep working on it and improve it as much as I can but I can't promise too much. If I'll have absolutely no free time, I'll probably go open-source because I know this tool is great but has some bugs and missing features that community could fix or implement. Thanks to all who reported bugs and everyone who use MTA:SE.
  24. 50p

    New race Radar

    What if you had 2 checkpoints race. 1 checkpoints at 1 side of the airport and 1 and the place where you started the race? You want to calculate distance from start to finish which would be 0 or about 5. You need to know the distance of the entire race (add up distances between checkpoints). That would be easier but not very very accurate.
×
×
  • Create New...