Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. Did you try to replace them both in 1 function?
  2. Are they replacing in different resources? Is the resource that replaces Hydra running?
  3. Are they replacing in different resources? Is the resource that replaces Hydra running?
  4. That's correct. If you want to read the file in client-side script the client has to download it first, therefore you have to include the file in the meta.xml ().
  5. That's correct. If you want to read the file in client-side script the client has to download it first, therefore you have to include the file in the meta.xml ().
  6. Client-side script line:2 - getPelementPosition, I guess it should be getElementPosition line:15 - function gets attached to "setfirekey" which does not exist because "setfire" event is added
  7. Client-side script line:2 - getPelementPosition, I guess it should be getElementPosition line:15 - function gets attached to "setfirekey" which does not exist because "setfire" event is added
  8. Update (v1.3)! For more info go to the download page or the first post! EDIT: Update (v1.3.1)! There was a problem with depositing negative amount of money. It's recommended to re-download if you don't want your players to be rich!
  9. Update (v1.3)! For more info go to the download page or the first post! EDIT: Update (v1.3.1)! There was a problem with depositing negative amount of money. It's recommended to re-download if you don't want your players to be rich!
  10. I don't think you can set objects alpha but you can always try.
  11. I don't think you can set objects alpha but you can always try.
  12. You can not assign 3 values to a variable local movedup = 737, 955, 46 local movedtoairport = -1410, -5, 41 local moveddown = -1410, -5, 12 This is wrong because these variable have only the first value after '=' sign, but moveObject requires 3 coords (x,y,z). You have to use 3 different variables or a table. local movedup, movedtoairport, moveddown = { 737, 955, 46 }, { -1410, -5, 41 }, { -1410, -5, 12 } setTimer( moveObject, 7000, 1, battleplatform, 35000, movedtoairport[ 1 ], movedtoairport[ 2 ], movedtoairport[ 3 ] )
  13. You can not assign 3 values to a variable local movedup = 737, 955, 46local movedtoairport = -1410, -5, 41local moveddown = -1410, -5, 12 This is wrong because these variable have only the first value after '=' sign, but moveObject requires 3 coords (x,y,z). You have to use 3 different variables or a table. local movedup, movedtoairport, moveddown = { 737, 955, 46 }, { -1410, -5, 41 }, { -1410, -5, 12 }setTimer( moveObject, 7000, 1, battleplatform, 35000, movedtoairport[ 1 ], movedtoairport[ 2 ], movedtoairport[ 3 ] )
  14. I wish I've read this message before I uploaded v1.2. Ok, fixed. Re-download or replace line 96: outputChatBox( "Bank balance: $ " .. tostring( playersAccount[ source ].balance ) ) with this: outputChatBox( "Bank balance: $ " .. tostring( playersAccount[ source ].balance ), source, 255, 255, 0 )
  15. I wish I've read this message before I uploaded v1.2. Ok, fixed. Re-download or replace line 96: outputChatBox( "Bank balance: $ " .. tostring( playersAccount[ source ].balance ) ) with this: outputChatBox( "Bank balance: $ " .. tostring( playersAccount[ source ].balance ), source, 255, 255, 0 )
  16. Ok, thanks for the report. I appreciate it. The problem is that I check if user is registered and use player_mta_account which is nil. To fix it yourself: remove lines 122, 123 and the 'end' which closes the if statement (which should be at line 126 after 2 lines removed). Or re-download the script.
  17. Ok, thanks for the report. I appreciate it. The problem is that I check if user is registered and use player_mta_account which is nil. To fix it yourself: remove lines 122, 123 and the 'end' which closes the if statement (which should be at line 126 after 2 lines removed). Or re-download the script.
  18. local movedwest = X + 1000 local movedeast = X - 1000 Swap the signs. West = X - 1000, East = X + 1000. The 2nd moveObject will not have effect as you call the moveObject on the same object and your time arg = 1000, which is 1sec, but the next moveObject is called just after it. Use setTimer() to call moveObject function with a delay.
  19. local movedwest = X + 1000 local movedeast = X - 1000 Swap the signs. West = X - 1000, East = X + 1000. The 2nd moveObject will not have effect as you call the moveObject on the same object and your time arg = 1000, which is 1sec, but the next moveObject is called just after it. Use setTimer() to call moveObject function with a delay.
  20. onResourceStart should be a string, therefore: addEventHandler( "onResourceStart", root, filltruckstop) Remember that this will be executed when any resource start! If you don't want to do that use this instead: addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), filltruckstop)
  21. onResourceStart should be a string, therefore: addEventHandler( "onResourceStart", root, filltruckstop) Remember that this will be executed when any resource start! If you don't want to do that use this instead: addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), filltruckstop)
  22. Yes, but now it is fixed. It didn't save money because account in SQL was not created. Now it has been fixed and it's recommended to re-download the script. As said before, it saves money only for logged in players, so if you deposit some money not being logged in you'll lose the money when you log in or when you leave server. When you log in you'll be able to save the $. Also, it uses your registered account's name not your nickname, so you can have different nickname but the money still will be saved onto your account. The message "Creating new DB table bank_accounts" will always be shown because that's the way executeSQLCreateTable is made, but no worries it does not overwrite previously created table.
  23. Yes, but now it is fixed. It didn't save money because account in SQL was not created. Now it has been fixed and it's recommended to re-download the script. As said before, it saves money only for logged in players, so if you deposit some money not being logged in you'll lose the money when you log in or when you leave server. When you log in you'll be able to save the $. Also, it uses your registered account's name not your nickname, so you can have different nickname but the money still will be saved onto your account. The message "Creating new DB table bank_accounts" will always be shown because that's the way executeSQLCreateTable is made, but no worries it does not overwrite previously created table.
  24. It saves money to SQLite database which is included with MTA. It's not MySQL where you have to connect first. SQLite does not require any connection (as it's on the server itself). The database file is called 'registry.db' which is located in server's directory, you can open/edit it using SQLite Database Browser. _______________________________ I think I found a bug, but I won't tell you what it is as I want to see how long it will take you to find it, lol.
×
×
  • Create New...