General > Developers Corner
Custom !votesong error
WispySkies:
I feel so stupid .-.
How did I miss that?!?
WispySkies:
--- Quote from: Bytewave on October 29, 2015, 09:15:58 PM ---You're missing a parameter statement for your votesong thing. You never actually take into account what they vote for.
--- End quote ---
I somewhat get what you mean, although I have never used parameters. After Timmy made me the command it plays the actual title from the video in chat, but Im not sure how you put that in. Little help, please?
roastchicken:
--- Quote from: WispySkies on October 30, 2015, 04:19:23 AM ---I somewhat get what you mean, although I have never used parameters. After Timmy made me the command it plays the actual title from the video in chat, but Im not sure how you put that in. Little help, please?
--- End quote ---
Bytewave gave you a template for a basic ULX command with a parameter.
WispySkies:
--- Quote from: roastchicken on October 30, 2015, 03:07:06 PM ---Bytewave gave you a template for a basic ULX command with a parameter.
--- End quote ---
Except I dont know how to change the parameter to what I need :-[
roastchicken:
Well in the addParam function the first argument is "type = type". If you checked out the handy docs you would find these lovely things:
cmds.BaseArg
cmds.BoolArg
cmds.CallingPlayerArg
cmds.NumArg
cmds.PlayerArg
cmds.PlayersArg
cmds.StringArg
You probably want to set 'type' to one of those.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version