Raised This Month: $ Target: $400
 0% 

How do you use the modulus in amxx if there is one


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
silentt
Member
Join Date: Feb 2006
Location: Toronto, Ontario, Canada
Old 08-17-2008 , 00:50   How do you use the modulus in amxx if there is one
Reply With Quote #1

The modulus I know in C and C++ is '%', so I was wondering how it is used in amxx if it is even in it. Cause it doesn't work for me.

Example code:
Code:
if(16 % 2 == 0)
{
      client_print(0, print_chat, "16 is evenly divisable")
}
The code was thought up on the spot, so please post about modulus and how to use it rather than how stupid this piece of code is.
silentt is offline
 



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 03:09.


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