-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
Did you try to replace them both in 1 function?
-
Are they replacing in different resources? Is the resource that replaces Hydra running?
-
Are they replacing in different resources? Is the resource that replaces Hydra running?
-
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 ().
-
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 ().
-
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
-
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
-
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!
-
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!
-
Can U Set Object Alpha ( invisible ) ?Answered NO!
50p replied to [DooD]Heavyair's topic in Scripting
I don't think you can set objects alpha but you can always try. -
Can U Set Object Alpha ( invisible ) ?Answered NO!
50p replied to [DooD]Heavyair's topic in Scripting
I don't think you can set objects alpha but you can always try. -
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 ] )
-
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 ] )
-
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 )
-
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 )
-
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.
-
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.
-
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.
-
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.
-
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)
-
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)
-
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.
-
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.
-
That's an MTA bug which has been solved.
-
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.