Raised This Month: $2 Target: $400
 0% 

Variable Types


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
silentt
Member
Join Date: Feb 2006
Location: Toronto, Ontario, Canada
Old 04-08-2008 , 20:23   Variable Types
Reply With Quote #1

Can someone link me or give me a list of the variable types and how they would be used in commands such as client_print?

Like for example.

There is the variable type string, %s to use it with client_print.

^
Something like that, nothing special. I know the main variable types and I need and stuff just mostly need to learn to use it with client_print, such as a float because %f isnt it. And I couldnt find it on wiki.amxmodx.org on the scripting section. And couldnt find it on amxx functions (http://www.amxmodx.org/funcwiki.php). If someone could help me with this it would be much appreciated.

Thanks,
Silentt(new to programming, and need a bit of help. So ill be chillin here pretty often in search of help. Then hopefully to give help )
__________________
Do More Fitness
http://fitness.domore.me
silentt is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-08-2008 , 20:25   Re: Variable Types
Reply With Quote #2

%f - float
%d - integer
%i - integer
%s - string
%c - character
%L - multilingual
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
silentt
Member
Join Date: Feb 2006
Location: Toronto, Ontario, Canada
Old 04-08-2008 , 20:32   Re: Variable Types
Reply With Quote #3

%f isnt working for floats

---------------------------------------------------------------

LINE 53: client_print(0, print_chat, %f, test)

Error: Invalid expression, assumed zero on line 53
Error: Undefined symbol "f" on line 53
Warning: Expression has no effect on line 53
Error: Expected token: ";", but found ")" on line 53
Error: Too many error messages on one line on line 53

Last edited by silentt; 04-08-2008 at 20:35.
silentt is offline
silentt
Member
Join Date: Feb 2006
Location: Toronto, Ontario, Canada
Old 04-08-2008 , 20:36   Re: Variable Types
Reply With Quote #4

wait nvm it works i just made a mistake as you can see I forgot the ""
silentt is offline
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 04-08-2008 , 21:48   Re: Variable Types
Reply With Quote #5

There is also %x and %X which result in hexadecimal representation of integer.
__________________
alien is offline
Send a message via ICQ to alien
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 04-09-2008 , 05:09   Re: Variable Types
Reply With Quote #6

and %u for unsigned int
__________________
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
Reply


Thread Tools
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 -4. The time now is 08:24.


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