Raised This Month: $ Target: $400
 0% 

'Defines' and 'if()'


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ZiP*
Senior Member
Join Date: Jul 2004
Old 05-10-2005 , 08:55   'Defines' and 'if()'
Reply With Quote #1

I can't get this to work.


Code:
  #define invifrags 10 //set number of frags needed for invisibility  #define weapfrags 15 //set number of frags needed for weapon commands
I got those defines.
Now i want to use them like this:

Code:
if(get_user_team (id,slayer) && get_user_frags(weapfrags)) {     bla bla     client_print(id, print_chat, "*You need at least %s kills", weapfrags) }

And where the %s is, i want it to show the number i defined up there.

EDIT: forgot small tags
ZiP* 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 16:39.


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