Posts: 255
Threads: 61
Joined: Jul 2012
Reputation:
0
I got it thanks! I understand the "true" thing
What is string1 and string2?
Posts: 255
Threads: 61
Joined: Jul 2012
Reputation:
0
What does the == 0) at the end mean? Is that needed each time?
Posts: 255
Threads: 61
Joined: Jul 2012
Reputation:
0
Sorry for these newbie questions :S
What is string1 and string2?
Is /armor a string?
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
It's fine.
We compare 2 strings (a sequence of characters). The first string and the second string. Yes, you type "/armour" and that's a string so it compares if the text you typed (cmdtext "holds" it) is equal to "/armour", so do something.
Posts: 470
Threads: 44
Joined: Dec 2011
Reputation:
0
i suggest you to use Zcmd because it's faster/easier and most of people use it.
and it's alot easier than Strcmp.
Good Luck in all ways.
Posts: 255
Threads: 61
Joined: Jul 2012
Reputation:
0
Okay I guess I understand it :/ It is still a little confusing but thanks for the help Konstantinos, I rep +1 you