12.02.2014, 14:20
Quote:
Better would be:
Deleting OnPlayerText, add: OnPlayerChat public OnPlayerChat(playerid, state[0 = close, 1 = opened], text[], success); state = state of the chatbox (opened or closed) text[] = text which gets send success = if the text got send (or 0 = not send) |
The callback will be called 3 times: when the player open the chatbox, when the player close the chatbox, when he send a message
That's three differents things, no reasons to assemble this in one callback