Array sizes do not match.
I dunno what's wrong really... wont even compile.
The origin part is the problem. Edit:It's not really important, I'm using separate arrays instead, I just wondered why it didn't work. Code:
|
Re: Array sizes do not match.
Why do you create a multi-dimensional array, the first dimension having a size of 1? I'm suprised that it even lets you. You should just create a one-dimensional array.
|
Re: Array sizes do not match.
It was just an example.
|
Re: Array sizes do not match.
AMXX compiler doesn't always tell you the correct location of the problem every time. A size 1 array is just... a variable... I bet if you just changed the size 1 arrays to variables the problems would go away and it would compile, even if it is pointing to Origin.
|
Re: Array sizes do not match.
It isn't pointing to origin. but if I would use this script it would work.
So the problem is really I can't use the origin in my func() Code:
|
Re: Array sizes do not match.
A Way is using a Temp Variable,here an example
Code:
|
Re: Array sizes do not match.
shouldn't 'origin[]' in the stock func be a float ?
|
Re: Array sizes do not match.
Quote:
|
Re: Array sizes do not match.
Here a little better way with fakemeta and float:
Code:
|
Re: Array sizes do not match.
Black Rose, here is fixed version of your code:
Code:
Remember, that enumeration items are visible in global scope. I suggest to name items with struc name prefix, i.e. "info" in your case, like this: Code:
|
| All times are GMT -4. The time now is 22:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.