Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Chris_T
Apprentice
Posts: 10
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2012
Reputation: 0
|
RE: test name
You could try using STRCMPI
IF !(STRCMPI("<src.name>","<name>"))
Spherewiki:
Quote:Return Value Meaning
-1 string1 is less than string2
0 The two strings are equal
1 string1 is greater than string2
|
|
02-24-2013 02:23 PM |
|
|
Ultima One
Journeyman
Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6
Ultima One
|
RE: test name
(02-24-2013 02:23 PM)Chris_T Wrote: You could try using STRCMPI
IF !(STRCMPI("<src.name>","<name>"))
Spherewiki:
Quote:Return Value Meaning
-1 string1 is less than string2
0 The two strings are equal
1 string1 is greater than string2
It should read:
IF (STRCMPI(<src.name>,<name>) == 0)
using the ! will make 0 and -1 both go in to the if statement. You only want to go in if the strings match, which must == 0.
Also no need for quotes here. It will just add quotes to both names and include them in the check.
ULTIMA ONE
The modern, sphere powered Ultima Online server
(This post was last modified: 02-27-2013 03:34 AM by Ultima One.)
|
|
02-27-2013 03:33 AM |
|
|
User(s) browsing this thread: 1 Guest(s)