Raised This Month: $ Target: $400
 0% 

Initialization data exceeds declared value


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-20-2016 , 10:47   Re: Initialization data exceeds declared value
Reply With Quote #2

I don't get those errors. But they generally happen when doing this:
Code:
new var[4] = { 1, 2, 3, 4, 5 } // 5 entries trying to fit into 4 slots. It's like trying to fit 5 people in a Hyundai i10.

What you do is either increase MAX_GROUPS or make it more dynamic by replacing all of the MAX_GROUPS with "sizeof sNames" and "sizeof sFlags" in the code and removing the fixed number of indexes
Code:
new sFlags[][] =   {     "abcdefghijklmnopqrstuv",    // Founder + VIP     "abcdefghijklmnopqrsuv",    // Founder     "abcdefghijkmnopqrstu",        // Owner + VIP     // And so on ... }; // ...     for(new i = 0; i < sizeof sFlags ; i++)         sFlagsValue[i] = read_flags(sFlags[i]);

You do have these errors though.
Code:
// Line 78 & 95: client_print(id, "----- <a href="http://www..ro" target="_blank" rel="nofollow noopener">www..ro</a> -----"); // --> client_print(id, print_chat, "----- <a href="http://www..ro" target="_blank" rel="nofollow noopener">www..ro</a> -----"); // can also be print_center, print_notify, print_console
__________________

Last edited by Black Rose; 05-20-2016 at 10:52.
Black Rose 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 18:41.


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