Raised This Month: $ Target: $400
 0% 

need a little help with an "if else" statement


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-03-2004 , 15:14   need a little help with an "if else" statement
Reply With Quote #1

cansomeone throw me a quick line on an if else statement where

Code:
public plugin_precache() if(get_cvar_num("sv_blah is one") {     spritethingy = precache_model("some sprite");     return PLUGIN_HANDLED } else {     spritethingy = precache_model("some other sprite");     return PLUGIN_CONTINUE; }

thanx.

so If sv_blah is set to one in server then it should precache and use sprite x otherwise sprite y.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode