Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-05-2006, 06:45 PM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
How do you detect decimal numbers?

I just need to know how I can detect a decimal number (like 1.5).
I need to know in Gs1 sorry.
Reply With Quote
  #2  
Old 11-05-2006, 06:49 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
If you know it's a number...

PHP Code:
 if ( var % )
   ... 
I don't know GS1, so ... There might be a few errors... But the concept is there.
Reply With Quote
  #3  
Old 11-05-2006, 07:05 PM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
Alright, thanks, you have no idea how much this helped.
Reply With Quote
  #4  
Old 11-08-2006, 02:41 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
or something like this?

PHP Code:
if (var!=int(var))
  ... 
Reply With Quote
  #5  
Old 11-08-2006, 03:11 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Seriously, why didn't you just use int()? O.o
Reply With Quote
  #6  
Old 11-08-2006, 04:57 AM
ryu_no_bishie ryu_no_bishie is offline
I know japanese l33t
ryu_no_bishie's Avatar
Join Date: Aug 2006
Posts: 256
ryu_no_bishie is an unknown quantity at this point
maybe he uses vb? Int in vb is a solid non decimal number,
__________________
Rockman Akane FTW
Reply With Quote
  #7  
Old 11-08-2006, 06:19 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Yeah but VB sucks...and has no relevance to gscript ^-^
Reply With Quote
  #8  
Old 11-08-2006, 06:32 AM
ryu_no_bishie ryu_no_bishie is offline
I know japanese l33t
ryu_no_bishie's Avatar
Join Date: Aug 2006
Posts: 256
ryu_no_bishie is an unknown quantity at this point
vb isnt bad sintax in my opinion, its just the way it runs and its requirements and stuff really suck
__________________
Rockman Akane FTW
Reply With Quote
  #9  
Old 11-08-2006, 09:21 AM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
lol its no big deal, my problem is solved!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 +2. The time now is 06:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.