Thread: strings...
View Single Post
  #8  
Old 08-09-2001, 02:52 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
well a string is diff. then a variable. so dont confuse the 2 ..
a string can hold letters and numbers.
variables just hold numbers .. and they have a limit . if u read the limit u get some crap like E.601 or something .. some error thing ..
a server string is just like a string but it starts with server.
and it saves into the server strings. which can be changed with RC.
here is a few way to use strings.

NPC Code:

if (playertouchsme) {
setstring mystring, hi;
}


that would set a string called mystring and would contain hi

NPC Code:

if (playertouchsme) {
setstring server.mystring, hi;
}


that would set a server string called server.mystring and would contain hi

and so on ..
also learn #s() and #v() and strtofloat() . those are important
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote