![]() |
0 is a no show.
I cant get a single digit0 to display in my gui, it's a mud var I'm using,
PHP Code:
EDIT : Think I found a solution : PHP Code:
|
In GScript2, 0 (NULL) is technically the variable not existing. When you set something to 0, it becomes unset, and unset variables automatically read 0.
it's the way the new engine works. |
You can also use float(str). If you put a null string in there, it'll show up as 0.
|
Quote:
PHP Code:
|
thanks guys, still want it to show 0 without anything extra, oh well... maybe in GS3 lol :o
|
Quote:
PHP Code:
|
Or even perhaps:
PHP Code:
|
Quote:
I still like max() though. One of my favorite functions for math related things :) I always see people doing all these integrated equations (the whole # > # ? # : # method) when they could simply use a combination of min(), max(), abs(), int() and the % symbol (not every case, obviously). |
yes it includes decimals by increments of 0.2
|
if varname = 0 just use @varname...
|
Then
PHP Code:
|
Quote:
|
| All times are GMT +2. The time now is 10:38 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.