02.12.2013, 07:11
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:
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).
Anyways, the reason it probably looks like everything is "saving" into tesst is because of the first loop... it formats all the dimensions of "Pickstr" fine, and then you basically start a loop (which i suspect goes 1 time), assign the float data to the tesst array/print it out, and basically over write the tesst array with the next iteration of the first loop (i) and repeat the process.
Код:
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...
Anyways, the reason it probably looks like everything is "saving" into tesst is because of the first loop... it formats all the dimensions of "Pickstr" fine, and then you basically start a loop (which i suspect goes 1 time), assign the float data to the tesst array/print it out, and basically over write the tesst array with the next iteration of the first loop (i) and repeat the process.