29.03.2012, 09:29
Alright so, i`m using y_commands for the gamemode i`m working on. There is one problem, after i updated to the latest YSI with the new y_commands.inc, OnCommandPerformed doesn't work as supposed. It practically returns the error message to any command. All the commands I have return "1", so i`m not sure what is it caused by.
Here is how the callback looks like,
Any idea?
Thanks.
Here is how the callback looks like,
Код:
public OnPlayerCommandPerformed(playerid,cmdtext[],success) { if(!success) return SendClientMessage(playerid,white,"Error message."); return 1; }
Thanks.