Raised This Month: $ Target: $400
 0% 

Formula in while


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
extreem
Member
Join Date: Apr 2011
Location: Czech Republick
Old 06-18-2011 , 18:08   Formula in while
Reply With Quote #1

HI, how I can start while if I have:
PlayerKills = 152
PlayerDeath = 15
I whant know if PlayerKills * 2 > or < PlayerDeath
__________________
extreem is offline
Send a message via Skype™ to extreem
bibu
Veteran Member
Join Date: Sep 2010
Old 06-18-2011 , 18:12   Re: Formula in while
Reply With Quote #2

This will help you:

http://forums.alliedmods.net/showthread.php?p=430572
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-18-2011 , 20:14   Re: Formula in while
Reply With Quote #3

You don't need a loop.

PHP Code:
if((kills 2) > deaths)
{
    
// (kills * 2) > deaths
}
else if((
kills 2) < deaths)
{
    
// (kills * 2) < deaths

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
extreem
Member
Join Date: Apr 2011
Location: Czech Republick
Old 06-19-2011 , 06:19   Re: Formula in while
Reply With Quote #4

Thanks Exolent[jNr]
__________________
extreem is offline
Send a message via Skype™ to extreem
Reply



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 23:34.


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