Raised This Month: $ Target: $400
 0% 

implement not equal


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
firewall
Member
Join Date: Jun 2006
Old 01-31-2007 , 12:31   implement not equal
Reply With Quote #1

how do i implement not equal function ?
firewall is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 01-31-2007 , 12:33   Re: implement not equal
Reply With Quote #2

Code:
if (!equal("gaben", "fat")) {    client_print(0, print_chat, "Not equal") } else {    client_print(0, print_chat, "Equal") }
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-31-2007 , 14:50   Re: implement not equal
Reply With Quote #3

Or, when dealing with anything other than strings:

Code:
if (thisInteger != thatInteger) {    client_print(0, print_chat, "Not equal") } else {    client_print(0, print_chat, "Equal") }
__________________
Brad is offline
Reply


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 00:36.


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