Raised This Month: $ Target: $400
 0% 

Detect variable type


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hebusletroll
Senior Member
Join Date: Apr 2006
Old 07-31-2008 , 05:51   Detect variable type
Reply With Quote #1

Hi friends,

Is there any way to detect a variable type like this :

new Float:myfloat,myinteger,mystring[]

switch(vartype(myfloat))
{
case 0: //integer
case 1: //float
case 2: //string
}
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x
hebusletroll is offline
 



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 05:33.


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