Here is my code:
Code:
//Size is a little bigger than data to be stored, 7>5
new arrayTest[33][7];
// . . .
public testMultiple(id) {
new var4 = random_num(1,9);
arrayTest[id][0] = var4;
arrayTest[id][1] = random_num(1,9);
arrayTest[id][2] = '.';
arrayTest[id][3] = random_num(1,9);
arrayTest[id][4] = random_num(1,9);
client_print(id,print_chat,"Array: %s",arrayTest[id]);
return PLUGIN_HANDLED;
}
It SHOULD print out:
Array: xxx.xx
But it prints out:
Array: .
I included
new var4 = random_num(1,9); incase the problem was with random numbers...seems not to be the case.
Any ideas?
__________________