Ulysses
General => Developers Corner => Topic started by: bender180 on April 13, 2013, 09:51:25 AM
-
With my custom commands when i use them in single player through xgui i receive the error "argument #1: no targets found" however when i run the command through the console in single player it works perfectly. On multiplayer servers the commands work great from xgui or console, is this a bug in my code or is this an xgui bug?
-
Sounds like something with xgui. Are you targeting yourself or a bot. before the error, what does xgui try to run?
-
Happens when i target myself. I haven't tried on a bot because you cant spawn one in a single player game. The commands work fine from xgui when the min players is 2 or more.
-
anyone have any idea how i can fix this?
-
could you post the code u used ? :-\
-
Are you able to use any other commands from XGUI?
-
Are you able to use any other commands from XGUI?
Turns out none of the commands work from xgui they are returning "Command "ulx slay", argument #1: no targets found" and something else i noticed was in psay my name doesn't appear (intentional?), but again all the commands work from console
-
Yes, your name not appearing in psay is intentional. We don't officially support ULX/XGUI in single player, but we'll check into the issue and see what we can find.
-
Bender, before we go digging too deep, have you modified any of our default code or functions?
Even directly, or through your own addon/command work?
-
I don't think I have, I used the commands you ship it with to build my commands so there is a possibility I did it with out realizing I'll try removing my commands to see if it makes a difference.
-
I doubt you did. You'd have to have actually written commands over-writing ULib functions.
But I wanted to check first.