• Lua Bugs
    3 replies, posted
I've solved the class issue, that is taken out of my hands. Still five more bugs and possibly more that I may need assistance on. I will make different replies so it is not massive. [gamemodes\repens\gamemode\schema\sh_coms.lua:142] unexpected symbol near ')' [lua] else return true; end; end ); -- Line 142 else nexus.player.Notify(player, "You are already searching a character!"); end; else nexus.player.Notify(player, "You cannot search a moving character!"); end; [/lua] The other schema issue, the rest after this are nexus predicaments. [gamemodes\repens\gamemode\schema\sv_auto.lua:333] '<eof>' expected near 'end' [lua] if (itemTable) then itemTable:OnChangeClothes(player, false); player:SetCharacterData("clothes", nil); player:SetSharedVar("sh_Clothes", 0); end; end; if (itemTable) then player:UpdateInventory(itemTable.uniqueID); end; end; -- Line 333 [/lua] The two nexus issues will be posted below. [editline]18th January 2011[/editline] [nexus\gamemode\core\libraries\sh_class.lua:12] attempt to index local 'data' (a nil value) [lua] function nexus.class.Register(data, name) if (!data.maleModel) then -- Line 12 data.maleModel = data.femaleModel; end; if (!data.femaleModel) then data.femaleModel = data.maleModel; end; [/lua] [@gamemodes\nexus\gamemode\core\sh_core.lua:2430] bad argument #1 to 'find' (string expected, got nil) [lua] function NEXUS:IncludePrefixed(fileName) if (string.find(fileName, "sv_") and !SERVER) then return; end; if (string.find(fileName, "sh_") and SERVER) then AddCSLuaFile(fileName); -- Line 2435 elseif (string.find(fileName, "cl_") and SERVER) then AddCSLuaFile(fileName); return; end; include(fileName); end; [/lua] Those are the issues, provide overview if you can. Thanks.
Remove both the erroring lines entirely.
[QUOTE=ralle105;27488519]Remove both the erroring lines entirely.[/QUOTE] Right, will do so.
Now, for the same sh_coms.lua file, the console expects and end for the function at line 145. [lua] return false; else return true; end; end; else nexus.player.Notify(player, "You are already searching a character!"); end; else nexus.player.Notify(player, "You cannot search a moving character!"); end; else -- Line 145 nexus.player.Notify(player, "This character is not tied!"); end; else nexus.player.Notify(player, "You don't have permission to do this right now!"); end; else nexus.player.Notify(player, "This character is too far away!"); end; else nexus.player.Notify(player, "You must look at a character!"); end; end; [/lua]
Sorry, you need to Log In to post a reply to this thread.