AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Character (https://forums.alliedmods.net/showthread.php?t=74814)

anakin_cstrike 07-25-2008 14:15

Character
 
Hi:)
Can you give me an example with %c :oops:

Exolent[jNr] 07-25-2008 14:29

Re: Character
 
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"

anakin_cstrike 07-25-2008 14:49

Re: Character
 
Quote:

Originally Posted by anakin_cstrike (Post 658582)
Hi:)
Can you give me an example with %c :oops:

Lol :lol:...very nice, thank you...


All times are GMT -4. The time now is 05:29.

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