09.12.2012, 01:27
(
Последний раз редактировалось deb014; 09.12.2012 в 16:23.
)
Hi and thanks for read my post.
I am having a little problem with YSI command processor "Y_Commands". When I try to run a command in game the server returns me a "Server: Unknown command" message, even if the command exists. I know all the commands are being correctly stored into the YCMD internal data because I got in console the whole command list of the server running this simple code:
I don't know what's going on with my commands, a few days ago the system was running correctly and reverting the recent changes to my game mode are not solving my problem.
Again thanks and I hope you can help me.
EDIT: I continued testing and I discovered that all the commands are disallowed for all the users, in the code the only restriction is for the administrative commands, the rest of the commands are supposed to work for the global group (I use Y_groups too).
EDIT 2: I used another function to allow the player to use all commands ( a loop through all commands in onplayerconnect using this function "Command_SetPlayer(i,playerid,true);" where "i" is the local variable defined in the "for" loop, but the commands are still disallowed for the player who try use them.
I am having a little problem with YSI command processor "Y_Commands". When I try to run a command in game the server returns me a "Server: Unknown command" message, even if the command exists. I know all the commands are being correctly stored into the YCMD internal data because I got in console the whole command list of the server running this simple code:
Код:
for (new i = 0; i != 25; ++i) { printf("%s",Command_GetName(i)); }
Again thanks and I hope you can help me.
EDIT: I continued testing and I discovered that all the commands are disallowed for all the users, in the code the only restriction is for the administrative commands, the rest of the commands are supposed to work for the global group (I use Y_groups too).
EDIT 2: I used another function to allow the player to use all commands ( a loop through all commands in onplayerconnect using this function "Command_SetPlayer(i,playerid,true);" where "i" is the local variable defined in the "for" loop, but the commands are still disallowed for the player who try use them.