AlliedModders

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

Drak 12-22-2008 14:32

String Help X2
 
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...

Emp` 12-22-2008 14:38

Re: String Help X2
 
%c for one character

also read this: http://forums.alliedmods.net/showthread.php?t=61367

Drak 12-22-2008 14:39

Re: String Help X2
 
Quote:

Originally Posted by Emp` (Post 731544)
%c for one character

Never even knew that existed. Thanks.


All times are GMT -4. The time now is 09:15.

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