![]() |
05-21-2012
|
20 |
Registered User
Join Date: Apr 2016
Location: Testbed
Posts: 604
|
It compares two strings and returns true if they are identical or false if they are not. PHP Code:
So if my guild was "Amazing" strequals(#g, Amazing) is effectively doing strequals(Amazing, Amazing) which would be true! Now, since this function always returns true or false, you can use it in conditional statements (i.e. if () constructs). PHP Code:
|
05-21-2012
|
21 | |
The muffin man
Join Date: Sep 2011
Location: Burger Refuge
Posts: 2,262
|
setcharprop #g,A guild; and so on.. mixing both GS1 and GS2 is a bad habit and is frowned upon, don't do it. |
|
05-21-2012
|
22 | |
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
|
|
05-22-2012
|
27 | |
Levels<3
Join Date: Dec 2011
Location: Fairfax, Virginia
Posts: 997
|
![]() |
|
05-22-2012
|
28 | |
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
But I did try player.#g xD it's fun making stuff up |
|