msprod Posted July 27, 2011 Share Posted July 27, 2011 (edited) Hello, i want execute role play paradise 1.0 on mta 1.1 (mysql ok) and i have this error : =========================================================== = Multi Theft Auto: San Andreas v1.1-unstable-2892 =========================================================== = Server name : myserver = Server IP address: = Server port : 22013 = = Log file : ..ver1/htdocs/mods/deathmatch/logs/server.log = Maximum players : 32 = HTTP port : 22015 =========================================================== [2011-07-28 01:38:11] ERROR: Problem with resource: mapcycler; Failed to link to votemanager [2011-07-28 01:38:11] Resources: 50 loaded, 1 failed [2011-07-28 01:38:12] Server password set to 'a1z2e3' [2011-07-28 01:38:12] Querying game-monitor.com master server... success! [2011-07-28 01:38:12] Querying backup master server... success! [2011-07-28 01:38:12] MODULE: Loaded "MySQL 5.0 database module" (0.41) by "Alberto Alonso <[email protected]>" [2011-07-28 01:38:12] MODULE: Loaded "SHA Module" (1.02) by "mabako" [2011-07-28 01:38:12] MODULE: Loaded "Sockets Module" (0.10) by "Gamesnert, mabako, MCvarial & x86" [2011-07-28 01:38:12] Starting resources........ [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:12] WARNING: [rpg]/admin/player.lua:27: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:12] Please wait... [2011-07-28 01:38:13] Please wait... [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/chat/chat.lua:31: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/vehicles/vehicles.lua:35: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/interiors/interiors.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/interiors/interiors.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/interiors/interiors.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/interiors/interiors.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/interiors/interiors.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/interiors/interiors.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/interiors/interiors.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/interiors/interiors.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: [rpg]/shops/shop.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/shops/shop.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:14] WARNING: [rpg]/shops/shop.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:14] WARNING: unlinked.lua [server] is encoded in ANSI instead of UTF-8. Please convert your file to UTF-8. [2011-07-28 01:38:14] Some files in 'vehicle-nodes' use deprecated functions. [2011-07-28 01:38:14] Use the 'upgrade' command to perform a basic upgrade of resources. [2011-07-28 01:38:15] INFO: Loaded 0 maps with 0 objects. [2011-07-28 01:38:15] WARNING: [rpg]/teleports/teleports.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:15] WARNING: [rpg]/teleports/teleports.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:15] WARNING: [rpg]/teleports/teleports.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:15] WARNING: [rpg]/teleports/teleports.lua:26: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:15] WARNING: [rpg]/bank/bank.lua:36: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:15] WARNING: [rpg]/bank/bank.lua:36: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:15] WARNING: [rpg]/bank/bank.lua:36: Bad argument @ 'addCommandHandler' [Expected bool at argument 3, got none] [2011-07-28 01:38:15] WARNING: [rpg]/bank/bank.lua:36: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:15] WARNING: [rpg]/bank/bank.lua:36: Bad argument @ 'addCommandHandler' [Expected bool at argument 4, got none] [2011-07-28 01:38:15] Server started and is ready to accept connections! [2011-07-28 01:38:15] Type 'help' for a list of commands. [2011-07-28 01:38:15] _ _ _ [2011-07-28 01:38:15] | | | (_) [2011-07-28 01:38:15] _ __ ___ | |_ __ _ _ __ __ _ _ __ __ _ __| |_ ___ ___ [2011-07-28 01:38:15] | '_ ` _ \| __/ _` | | '_ \ / _` | '__/ _` |/ _` | / __|/ _ \ [2011-07-28 01:38:15] | | | | | | || (_| | | |_) | (_| | | | (_| | (_| | \__ \ __/ [2011-07-28 01:38:15] |_| |_| |_|\__\__,_| | .__/ \__,_|_| \__,_|\__,_|_|___/\___| [2011-07-28 01:38:15] | | [2011-07-28 01:38:15] |_| v1.00 help please ... thanks all Edited July 29, 2011 by Guest Link to comment
0 Jaysds1 Posted July 27, 2011 Share Posted July 27, 2011 I suggest to show the scripts... And moderator, move this to scripting forum. Link to comment
0 msprod Posted July 27, 2011 Author Share Posted July 27, 2011 (edited) -- addCommandHandler supporting arrays as command names (multiple commands with the same function) local addCommandHandler_ = addCommandHandler addCommandHandler = function( commandName, fn, restricted, caseSensitive ) -- add the default command handlers if type( commandName ) ~= "table" then commandName = { commandName } end for key, value in ipairs( commandName ) do if key == 1 then addCommandHandler_( value, fn, restricted, caseSensitive ) else addCommandHandler_( value, function( player, ... ) -- check if he has permissions to execute the command, default is not restricted (aka if the command is restricted - will default to no permission; otherwise okay) if hasObjectPermissionTo( player, "command." .. commandName[ 1 ], not restricted ) then fn( player, ... ) end end ) end end end Edited July 28, 2011 by Guest Link to comment
0 Jaysds1 Posted July 28, 2011 Share Posted July 28, 2011 addCommandHandler is the same, you can't change it to a different definition, so you have to change line 2. Try this: -- addCommandHandler supporting arrays as command names (multiple commands with the same function) addCommandHandler = function( commandName, fn, restricted, caseSensitive ) -- add the default command handlers if type( commandName ) ~= "table" then commandName = { commandName } end for key, value in ipairs( commandName ) do if key == 1 then addCommandHandler( value, fn, restricted, caseSensitive ) else addCommandHandler( value, function( player, ... ) -- check if he has permissions to execute the command, default is not restricted (aka if the command is restricted - will default to no permission; otherwise okay) if hasObjectPermissionTo( player, "command." .. commandName[ 1 ], not restricted ) then fn( player, ... ) end end ) end end end Link to comment
0 msprod Posted July 28, 2011 Author Share Posted July 28, 2011 Thanks for you reply but, i have a new error with your solution: [2011-07-28 10:39:13] ERROR: [rpg]/admin/player.lua:21: stack overflow [2011-07-28 10:39:16] ERROR: [rpg]/chat/chat.lua:25: stack overflow ect... Link to comment
0 MTA Team ccw Posted July 28, 2011 MTA Team Share Posted July 28, 2011 Your original code is ok, but the server is being too fussy. I'll fix that in the next nightly. Link to comment
0 msprod Posted July 28, 2011 Author Share Posted July 28, 2011 verry thanks for you... I look forward to working with this... i wait... thanks Link to comment
0 msprod Posted July 29, 2011 Author Share Posted July 29, 2011 10000000 Thanks !! It 100% Work with "2899", i'm verry Happy !! You are the best ! Link to comment
Question
msprod
Hello,
i want execute role play paradise 1.0 on mta 1.1 (mysql ok)
and i have this error :
help please ... thanks all
Edited by GuestLink to comment
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now