Hi,
i've just added a button and want a command in.
The command name is: /buy 1
chat.say /buy 1 <- wouldn't work not even with console ingame.
chat.say "/buy 1" <- works via console but not via C#, why not??
It would make me life easier if it would work, it should work. Puts() gives me the right in console but not ingame it looks looks always so:

but it should be "/buy 1" so it will run the my method. It doesnt realize anything after the space thats why i need to put " before and after it.
In console it works
Thats the code:
and if i let it output in the console with Puts() method, it gives me the right out, but not ingame.
Can someone help me please
i've just added a button and want a command in.
The command name is: /buy 1
chat.say /buy 1 <- wouldn't work not even with console ingame.
chat.say "/buy 1" <- works via console but not via C#, why not??
It would make me life easier if it would work, it should work. Puts() gives me the right in console but not ingame it looks looks always so:

but it should be "/buy 1" so it will run the my method. It doesnt realize anything after the space thats why i need to put " before and after it.
In console it works

Thats the code:

and if i let it output in the console with Puts() method, it gives me the right out, but not ingame.
Can someone help me please