AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Decimal variables? (https://forums.alliedmods.net/showthread.php?t=10536)

VarmVaffel 02-22-2005 09:49

Decimal variables?
 
I get an error when I try to declare a var this way:

new DecVar[11]={0.1, 0.25, 0.4, 0.55, 0.7, 0.85, 1.0, 1.2, 1.4, 1.6, 2.0}

It has obviously something to do with the decimals, so how do I declare them properly?

PM 02-22-2005 12:48

Try this:
Code:
new Float:DecVar[11]={0.1, 0.25, 0.4, 0.55, 0.7, 0.85, 1.0, 1.2, 1.4, 1.6, 2.0}


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

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