
12-09-2001, 01:03 AM
|
|
RIP DarkCloud_PK
|
Join Date: Oct 2001
Location: Canada
Posts: 3,746
|
|
|
I am not much for explainations but I will try.
When you use strequals as you probably already know,its a flag (kinda like strcontains )
I will get right off to explain how you use it
First off I will set a value to server.variable as a string(you know what this is I hope).
if (created) {
setstring server.variable,69;
timeout=.05;
}
Thats pretty basic.
Now I want to use strequals in a flag:
//if the variable is equal to 69.
if (strequals(#s(server.variable),69) {
message #s(server.variable);//tells me what the string equals.
}
Now I will explain what these parts stand for.
#s is pretty basic.It shows a value of the variable in a string.
Then there is where you put the variable.Thats the (server.variable) part.you change it to be what you want it to be.
and then the ,69 part.Well basically the comma in this format just means equals to.Really its not that hard.
I probably wasn't much help. |
__________________
Save Classic!
|
|
|
|