AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Errors ): (https://forums.alliedmods.net/showthread.php?t=183898)

Zaagam 04-28-2012 07:42

Errors ):
 
Yes hello im editing in https://forums.alliedmods.net/showthread.php?p=1695842 that plugin and trying to take away stuff and so and then i get errors at the lines

(65) Error 018: initialization data exceeds declared size
(67) Error 018: initialization data exceeds declared size

Please tell me quick i wanna get the problem fixed :D!

BeeFighter 04-28-2012 07:49

Re: Errors ):
 
I need ur full code, how are we suppose to know what the error is.

<VeCo> 04-28-2012 07:52

Re: Errors ):
 
Did you added your new ranks in enumRank?

BeeFighter 04-28-2012 08:00

Re: Errors ):
 
Quote:

Originally Posted by <VeCo> (Post 1697981)
Did you added your new ranks in enumRank?

Don't spoonfeed him,

If he want us to help he must give us his full code.

Zaagam 04-28-2012 08:02

Re: Errors ):
 
/* Awesome:
- Ranks
*/
enum _:enumRank {
Vip
}
new const Rank_Names[enumRank][] = {
"Vip"
}
new const Rank_Flags[enumRank] = {
ADMIN_BAN,
ADMIN_KICK
}
new const Rank_Items[enumRank][] = {
"0 1 9 2 3 4 7 8",
"0 1 11 9 3 4"
}
new const Rank_Tags[enumRank][] = {
"[Vip]"
}

Zaagam 04-28-2012 08:03

Re: Errors ):
 
And if i change ADMIN_BAN and ADMIN_KICK i get errors to o.o

<VeCo> 04-28-2012 08:04

Re: Errors ):
 
So yeah, as I said, that's the error, remove the second lines from Rank_Flags and Rank_Items, because you use only 1 rank in enumRank.

BeeFighter 04-28-2012 08:07

Re: Errors ):
 
Quote:

Originally Posted by <VeCo> (Post 1697995)
So yeah, as I said, that's the error, remove the second lines from Rank_Flags and Rank_Items, because you use only 1 rank in enumRank.

PHP Code:

/* Awesome:
- Ranks
*/
enum _:enumRank {
    
Vip
}
new const 
Rank_Names[enumRank][] = {
    
"Vip"
}
new const 
Rank_Flags[enumRank] = {
    
ADMIN_BAN
}
new const 
Rank_Items[enumRank][] = {
    
"0 1 9 2 3 4 7 8"
}
new const 
Rank_Tags[enumRank][] = {
    
"[Vip]"


There it is, You've added only one rank in enum:enumRank.

Zaagam 04-28-2012 08:07

Re: Errors ):
 
Veco THANKS :D!

Zaagam 04-28-2012 08:08

Re: Errors ):
 
And Beefighter (:


All times are GMT -4. The time now is 07:52.

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