Raised This Month: $ Target: $400
 0% 

Character


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 07-25-2008 , 14:15   Character
Reply With Quote #1

Hi
Can you give me an example with %c
__________________

anakin_cstrike is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-25-2008 , 14:29   Re: Character
Reply With Quote #2

A character is 1 letter, number, or symbol inside apostrophes.

Code:
new string[12]; copy(string, 11, "lolstring"); /* string[0] = 'l' string[1] = 'o' ... each slot of string[] (except the last one) contains a character */ client_print(0, print_chat, "%s - %c%c%c", string, string[0], string[1], string[2]); // Result: "lolstring - lol" //You can also set variables as characters (for whatever reason you may have). new lolstring = 'Q'; client_print(0, print_chat, "%c", lolstring); // Result: "Q"
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 07-25-2008 , 14:49   Re: Character
Reply With Quote #3

Quote:
Originally Posted by anakin_cstrike View Post
Hi
Can you give me an example with %c
Lol ...very nice, thank you...
__________________

anakin_cstrike 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 05:29.


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