Raised This Month: $ Target: $400
 0% 

String Help X2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 12-22-2008 , 14:32   String Help X2
Reply With Quote #1

Okay, so I have this
Code:
    new String[10] = "123456789"     server_print("STRING: %s",String[1]);
STRING Should print, "2". But it prints "23456789".
Why?

Shouldn't it be like
String[0] = "1"
String[1] = "2"
etc...
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-22-2008 , 14:38   Re: String Help X2
Reply With Quote #2

%c for one character

also read this: http://forums.alliedmods.net/showthread.php?t=61367
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Drak
Veteran Member
Join Date: Jul 2005
Old 12-22-2008 , 14:39   Re: String Help X2
Reply With Quote #3

Quote:
Originally Posted by Emp` View Post
%c for one character
Never even knew that existed. Thanks.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
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 09:15.


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