Raised This Month: $81 Target: $400
 20% 

Garbage when using multidimensional char


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ElooKoN
        ^_^
Join Date: Apr 2011
Old 01-24-2017 , 21:25   Garbage when using multidimensional char
Reply With Quote #1

Is it intended behaviour multidimensional chars are created with garbage also when using new instead of decl?

Code

Code:
new MaxParams = 5;
new MaxParamSize = 32;

new String:params[MaxParams][MaxParamSize];

for (new i = 0; i < MaxParams; i++) {
	PrintToServer("Param %d: %s", i, params[i]);
}
Result

Code:
Param 0:
Param 1:
Param 2: *]******************
Param 3: ***************************?*********5******************5?
Param 4: *********z******************z******************z******************z*********

Last edited by ElooKoN; 01-24-2017 at 21:37.
ElooKoN is offline
 


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 22:17.


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