Raised This Month: $51 Target: $400
 12% 

Garbage when using multidimensional char


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ElooKoN
        ^_^
Join Date: Apr 2011
Old 01-24-2017 , 20: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 20:37.
ElooKoN is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-24-2017 , 20:38   Re: Garbage when using multidimensional char
Reply With Quote #2

Which compiler version are you using?
__________________
Peace-Maker is offline
ElooKoN
        ^_^
Join Date: Apr 2011
Old 01-24-2017 , 20:39   Re: Garbage when using multidimensional char
Reply With Quote #3

Currently I'm using version 1.8.0.5947.
ElooKoN is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-25-2017 , 12:36   Re: Garbage when using multidimensional char
Reply With Quote #4

Try using the latest 1.9 compiler
__________________
Peace-Maker is offline
ElooKoN
        ^_^
Join Date: Apr 2011
Old 01-25-2017 , 15:15   Re: Garbage when using multidimensional char
Reply With Quote #5

So the bug is fixed in the dev builds?
ElooKoN 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 18:06.


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