AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Formula in while (https://forums.alliedmods.net/showthread.php?t=159548)

extreem 06-18-2011 18:08

Formula in while
 
HI, how I can start while if I have:
PlayerKills = 152
PlayerDeath = 15
I whant know if PlayerKills * 2 > or < PlayerDeath

bibu 06-18-2011 18:12

Re: Formula in while
 
This will help you:

http://forums.alliedmods.net/showthread.php?p=430572

Exolent[jNr] 06-18-2011 20:14

Re: Formula in while
 
You don't need a loop.

PHP Code:

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



extreem 06-19-2011 06:19

Re: Formula in while
 
Thanks Exolent[jNr]


All times are GMT -4. The time now is 23:34.

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