How do I get/check a players position? + Is this script right?
#6

Quote:
Originally Posted by Twizted
Посмотреть сообщение
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.
No, my computer is broken so I can not test the code. I'm doing everything on my phone so yeah.
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?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)