there isnt anything wrong with the dispatcher. its just the script that distributes errors in commands
line 23: local isAdmin = game.ReplicatedStorage.eventcontainer.isAdmin:InvokeServer(context)
there isnt anything wrong with the dispatcher. its just the script that distributes errors in commands
line 23: local isAdmin = game.ReplicatedStorage.eventcontainer.isAdmin:InvokeServer(context)
A cyclic table, if for some reason you didn’t look it up already, is a table that contains itself.
local a = {}
a[1] = a --> Error: Tables cannot be cyclic
Line 23 isn’t adding anything to a table that would cause that though. I could just be blind, but I don’t see anywhere in the code you gave that could cause a table error.
that makes the error even more strange, I am using a database not tables
Just for the record, invoking or firing the server in RemoteEvents and RemoteFunctions automatically supplies the player as the first argument. I doubt that’s your problem though, but it will potentially cause a problem when you use CmdrLogging function.
I don’t see what the problem is in the small amount of code we have here.
I am currently changing my code for that thanks for the suggestion
Is there any possible way you could get more people to help?
Not really, we work for free. People help with stuff where they have the information they need from you and some knowledge of the problem. Clearly a table is in use somewhere (DataStores can qualify for this problem too) but I don’t see you adding keys or setting data stores in any of the code here. I’m quite confident that these scripts aren’t the problem.
basically, we just wait for people to get across my topic?
What is context
?
Don’t really want to go learn a framework, thank you though.
But it looks like that’s the only table in the code you posted that could be causing the cyclical error. Double-check that you’re creating and using it correctly.
You could print that out, or use the Lua debugger and step through the code line-by-line to see if the variables are what you expect.
Which line would the table be on?
I don’t know, it’s your code
You might have more luck asking in the Cmdr discord—there’s a link in the docs you linked. I’m getting the sense that this might be a pretty framework-specific question. Good luck!
I came on dev forums because I am banned in the Cmdr Discord
This is not a Cmdr framework specific question…
Lmao that’s pretty funny sorry
Let’s see…
Can you post
context
table looks like (print(context)
) on the line before line 23 (the call to isAdmin
)i dont think getting banned from a disord server is very funny but ok.
there was no reason to laugh about spomeone being banned in a discord server.
also
i believe context
is NOT a table if you read the documentation about context correctly, instead you were lazy, lol.
By the way, I edited the code and made a couple improvements, but it doesn’t work.
Didn’t intend any offense! Sorry
Could you print context
out right before line 23 and share it here?
And also share the rest of your main command code?
sure, i’d love to.
you were right, apparently context is a table.
sorry!
SOLUTION FOUND!
I have found the solution:
remove the context table as the list of arguments passed when invoking for isAdmin.