AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Float + num :0 (https://forums.alliedmods.net/showthread.php?t=101836)

xbatista 08-27-2009 15:36

Float + num :0
 
If I will add example ' 5.0 + 5 ' will be 10.0 or 10?
PHP Code:

        for(new 05j++) 
        {
            
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
            
write_byte(TE_BLOODSPRITE)
            
engfuncEngFunc_WriteCoord,origin[0]+(x*j)) 

Quote:

x = random_float(-100.0,100.0)
Quote:

'origin' too floated

Arkshine 08-27-2009 15:38

Re: Float + num :0
 
10.0 ; if you add a float whatever the first or second, the result will be a float.

xbatista 08-27-2009 15:41

Re: Float + num :0
 
Very fast answer, thanks :)


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

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