![]() |
Help
How can I make it realize what body.head the player is asking for and give it to them without writing a scrip that has each and every line of code dedicated to one head/body...
|
Can you explane that better? I'm new at tokenize and stuff so i don't realy now how to use it...
|
Kaim, I never asked you to give it to me, I said 'explane', also, I have been looking in their and it did not help.
Thank you Nyght for explaning it. |
Quote:
and #e isn't much difficult, just look it up in the commands.rtf |
Quote:
Not the whole complete script with everthing... I even explained each command as well. WTF is your problem lately? Your like 'delete post happy' all of a sudden... |
Quote:
|
Quote:
|
Well I'll learn you a bit...
#e(start, lenght, string). if the length is -1 it goes to the end of the string. like: #e(5, -1, #c). if ths player said "kill PastAustin" #e(5, -1, #c). would equal PastAustin. its not hard... Tokenize would work just as well. However I will not hand it on a plate either. |
tokenize is easy:
tokenize string; so: if i say, "Nyght Is Awesome" and use... tokenize #c; the follwoing tokens would be made: #t(0) = Nyght #t(1) = Is #t(2) = Awesome |
Kaimetsu, do you have no idea on how learning works? I'll give a school example, if they were to give you a problem, they first show you how to do it and then usely give a example. They just do go, oh, use dividing to do it becuse how would use USE dividing if you didn't know what it was? I'm guessing that you arn't one that spends time helping and/or teaching others are you?
|
but in school, you have things called math books that show examples, in gscript, you have things called commands.rtf, newfeatures2001.txt, newfeatures2002,txt
|
Grr... You will learn a LOT more effectively if someone tells you how different functions work and then let you figure it out rather than giving you the script and explaining it. If they have to figure out how to piece things together on their own, they will learn and remember it a LOT better.
|
Quote:
|
Quote:
|
Fuuny thing is, all I asked for was and example and a explination, not a script, you people jumo to conclusion way to fast.
|
How was saying that you wont hand it to me on silver plater rational when I never asked for that in the first place. I ask for a explination, I have never used tokensize before.
|
Life doesn't always hand you answers on a silver platter. Learn it for yourself. Ultimitly it will help you more than someone sticking a silver spoon in your mouth every time you are confused.
|
You people don't get it do you? I never asked for anything of that sort... I wanted a explination on how one would use that, and in life they do explane things like that, I say, this thread should end NOW.
|
you people are crazy... he isnt allowed to explain things? nevermind I guess it dosent matter....
while I am here I might as well learn.. ok so like an if statment would be made with tokensize like... if (#t(3,awsome)) { blah; } somethin like that? or am I off completley... |
oh yea I used strequals before
its like if (strequals(#t(3),awsome)) { blah stuff; } or am I wrong yet again :) |
| All times are GMT +2. The time now is 07:06 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.