Raised This Month: $12 Target: $400
 3% 

Numbers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 09-18-2010 , 06:42   Numbers
Reply With Quote #1

I make a Plugin with handels with numbers (integers) which the player type in the chat.

For example the player writes "asd" in chat the plugin dont do anything but if u write a number it does something.

is there something like:

PHP Code:
if ( is_number myVariable ) ) 
?
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 09-18-2010 , 06:47   Re: Numbers
Reply With Quote #2

isalnum(myVariable)
SpeeDeeR is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 09-18-2010 , 12:27   Re: Numbers
Reply With Quote #3

Quote:
Originally Posted by SpeeDeeR View Post
isalnum(myVariable)
No.

isdigit()
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 09-18-2010 , 12:41   Re: Numbers
Reply With Quote #4

ty<3
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-18-2010 , 17:20   Re: Numbers
Reply With Quote #5

is_str_num()
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 -4. The time now is 16:43.


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