
12-30-2003, 10:21 PM
|
|
Playerworld Administrator
|
 |
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
|
|
Quote:
Originally posted by osrs
NPC Code:
if(playerchats){
if(strequals(#c,/red)) color = {0.5,0,0,0.5};
elseif(strequals(#c,/green)) color = {0,0.5,0,0.5};
elseif(strequals(#c,/blue)) color = {0,0,0.5,0.5};
elseif(strequals(#c,/alpha)) color = {0.5,0.5,0.5,0.5};
}
|
Why do people do those "elseif"s in this situation?
I KNOW for a fact "if" by itself would work fine, i was just wondering if there's acutally a viable reason for doing this... |
__________________
-HoudiniMan (Chief Playerworld Administrator) 
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center
|
|
|
|