Scripting questions
#4

Yes, cmdtext is an array (you can call it a string). Everything that is written after "/" is stored in that array.
"if(!cmdtext[3])" will check if player wrote just "/me" because after "me" there is a null, or the end of the string.
And yeah, cmdtext[4] would be "/me(space)(first letter)", i.e. "/me s(hots the player)"
Reply


Messages In This Thread
Scripting questions - by Sarra - 02.08.2014, 19:24
Re: Scripting questions - by youssefehab500 - 02.08.2014, 19:37
Re: Scripting questions - by Snipa - 02.08.2014, 20:12
Re: Scripting questions - by dominik523 - 02.08.2014, 20:17
Re: Scripting questions - by Sarra - 02.08.2014, 20:53
Re: Scripting questions - by Threshold - 03.08.2014, 00:24

Forum Jump:


Users browsing this thread: 1 Guest(s)