how i can this -> new x[1][2] = {-1, ...};
new x[1] = {-1, ...}; // woohoo
new x[1][2] = {-1, ...}; // doh |
Re: how i can this -> new x[1][2] = {-1, ...};
PHP Code:
|
Re: how i can this -> new x[1][2] = {-1, ...};
Yes, but:
new x[MAXPLAYERS + 1][2] = {{-1, -1}}; // doh I must use cycle :\ |
Re: how i can this -> new x[1][2] = {-1, ...};
You can't initialize a multi-dimensional array like that. The best you can do is loop and set the values.
|
Re: how i can this -> new x[1][2] = {-1, ...};
Is this what you are trying to do? (see spoiler)
Spoiler
Edit: I noticed you want the first dimension to be the size of maxplayers, as far as I know you would need to type out each dimension manually. It would be easier loop and set each value after the variable is created. |
Re: how i can this -> new x[1][2] = {-1, ...};
PHP Code:
|
Re: how i can this -> new x[1][2] = {-1, ...};
Quote:
|
Re: how i can this -> new x[1][2] = {-1, ...};
Quote:
EDIT: Declared globally it's working, but locally it isn't |
Re: how i can this -> new x[1][2] = {-1, ...};
I still receive the compile error on the latest build 1.9.0:6044
PHP Code:
|
Re: how i can this -> new x[1][2] = {-1, ...};
Quote:
|
All times are GMT -4. The time now is 14:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.