Loading/Using multiple values
#5

Quote:
Originally Posted by Kyosaur
Посмотреть сообщение
Wow, I am either really tired, or it is incredibly difficult to make sense of your arbitrary test naming/snippets lol. First thing is first, why is tesst's first dimension's size not set? I've generally only seen this when you are explicitly assigning something to it/filling it in...for example:

Код:
new test[][aaaa] = {{1.0,2.0,3.0}, {2.0,3.0,4.0}};  //Might not be 100% valid...haven't touched pawn in like 3 years...
Well... as far as I know, if we didn't know the first dimension's size, we can leave it empty so PAWN can fill them later(for example, in looping).

Quote:
Originally Posted by Kyosaur
Посмотреть сообщение
Second, what does "sizeof(tesst[])" print out? 1? I believe all your problems are rooted from you not declaring that first dimension's size (Could have created a constant like MAX_TESST for that, and used that constant instead of sizeof(PickAmount) and sizeof(tesst[]) too...making it a bit nicer).
It prints out;
Код:
0
1
2
3
4
5
0
1
2
3
4
5
0
1
2
3
4
5
and so on ...
That's weird.
Reply


Messages In This Thread
Loading/Using multiple values - by newbienoob - 02.12.2013, 05:56
Re: Loading/Using multiple values - by Voxel - 02.12.2013, 06:37
Re: Loading/Using multiple values - by newbienoob - 02.12.2013, 07:05
Re: Loading/Using multiple values - by Kyosaur - 02.12.2013, 07:11
Re: Loading/Using multiple values - by newbienoob - 02.12.2013, 07:52

Forum Jump:


Users browsing this thread: 1 Guest(s)