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
silentt
Member
Join Date: Feb 2006
Location: Toronto, Ontario, Canada
Old 08-17-2008 , 01:34   Re: How do you use the modulus in amxx if there is one
Reply With Quote #6

figured out the problem I think, first is i got that warning becuase it needs a variable or it will tell me its dumb to do something like that. Then the first time when it didnt work was because modulus cant work if the number before the modulus is smaller. I think from running tests.

However I also get this whenever I do modulus (%) or division (/). First it will tell me to put debug at the end of my plugin in plugins.ini. When I do that it tells me this on the line where I use modulus or division
Code:
L 08/17/2008 - 01:31:50: [AMXX] Run time error 11: divide
Anyone know why or have anything they can tell me about it. If you need an example the example is what I had above 16 % 2 when I replace with variables and whatnot and get it to work I get that error, same with if I did regular division.
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