21.11.2017, 00:47
Quote:
To start:
1. OnPlayerText is a callback (public OnPlayerText(playerid, text[])); 2. You can't use callbacks inside custom functions. 3. Your code doesn't make sense at all. Have you tried compiling your script with that code in there? If you did, you'd get a bunch of errors. |
Oh! I didnt realize OnPlayerText was a callback lol. Thank you!
Also im having trouble understanding public functions. Does making a function public make it able to be called from anywhere in the script?