Raised This Month: $ Target: $400
 0% 

initialization data exceeds declared size


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-25-2023 , 21:43   Re: initialization data exceeds declared size
Reply With Quote #5

Quote:
Originally Posted by MrEgg0 View Post
1-Is there an explanation of how to do this
I did essentially tell you how. I said that you need to increase the size of the arrays and that the size of the array is set by MAXLEVEL.

Quote:
Originally Posted by MrEgg0 View Post
2-How can I increase the size of the matrix? Is it possible to make the size of the array indefinite and how to do it
There are no matrices in this particular programming language. Yes, often there is a way to make certain arrays indefinite. You should probably to learn the basics of programming to be able to understand how this part works. Especially since this plugin is comprised of multiple files (I haven't actually looked at the other files so it may be simple or it may not be so simple).

Quote:
Originally Posted by MrEgg0 View Post
This way you mean to increase the size of an array?:

new const WEAPONCONST[][]
No. The brackets set the dimension of the array, not the size. Also, that variable is already a 2D array so that wouldn't change anything.

-------------------------------

If you're actually interested in learning how to write and modify plugins, you really need to start by learning the basic concepts of programming. There are many tutorials available to help you out with this. The first two tutorials under General Pawn Programming on this list of tutorials are probably good places to start. If you prefer visual analogies, looking at the picture tutorial might be best, otherwise the second one might be better.

Also, you should post in the Scripting Help forum for getting help with your own coding. If you're not wanting to learn how to code, you should post in the Suggestions/Requests forum and wait for someone to help you out.
__________________
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode