Raised This Month: $ Target: $400
 0% 

Check || && problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Pamaliska
Senior Member
Join Date: Apr 2006
Location: Edinburgh, UK
Old 12-17-2007 , 09:54   Check || && problem
Reply With Quote #1

Hello to everyone who is willing to help me solve this thingy.

Code:
public event_weap_pick_up(id) {     if( !is_user_connected(id) || !is_user_alive(id) || !get_cvar_num("amx_vipscript") )         return PLUGIN_CONTINUE;         if( read_data(1) != CSW_AWP ||  Awp_User[id] )         return PLUGIN_CONTINUE;         set_task(0.1, "drop_awp", id);     client_print(id, print_chat, "Bla bla la la");         return PLUGIN_CONTINUE; }

The problem is I cannot figure out how to add extra check for other weapons into this code. I want it to check not only for CSW_AWP but also for CSW_G3SG1 and CSW_SG550.
For some reason it does not work like that
Code:
if( read_data(1) != CSW_AWP || CSW_G3SG1 || CSW_SG5500 || Awp_User[id] )

Cheers.
Pamaliska is offline
 


Thread Tools
Display Modes

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 11:04.


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