OnPlayerCommand2

Started by PsyChO_KiLLeR, Mar 06, 2015, 08:21 AM

Previous topic - Next topic

Thijn

Quote from: NE.CrystalBlue on Mar 07, 2015, 04:25 AMPress CTRL+F and search for function onPlayerCommand(. If more than one are found, remove the useless ones.
QuoteIf its neither working nor throwing any error on the console then try to lo


Quote from: NE.CrystalBlue on Mar 07, 2015, 04:25 AM
Quotecate whether there are more than one functions with the same ID . Its maybe possible that due to 2 callbacks , one is getting skipped by the server which will going to execute your desired result . Post the screenshot & explain that where have you put it .
Its not the onPlayerCommand, its onPlayerChat and onPlayerCommand2.



Did you actually try !champ?
Try adding a print with all the arguments to check if the onPlayerCommand2 actually gets called the way you think it does.

PsyChO_KiLLeR

well work the error was on these lines

Message("[" + player.ID +"] "+ player.Name + ": " + text.tostring() + "\n");
    Message(cred+"" + player.Name + " : "+cwhite+""+ text.tostring());


when i remove them it work but thnx for help