Help please i have too many problems.
#1

1 - SFCRRPG.pwn(8 : error 018: initialization data exceeds declared size
Код HTML:
 new glob3B58[3][1] = {
	"Timeout",
	"Leaving",
	"Kicked" 
         }
2 - error 018: initialization data exceeds declared size

Код HTML:
new glob3C24[55][1] = {
	"Unarmed (Fist)",
	"Brass Knuckles",
	"Golf Club",
	"Night Stick",
	"Knife",
	"Baseball Bat",
	"Shovel",
	"Pool Cue",
	"Katana",
	"Chainsaw",
	"Purple Dildo",
	"Big White Vibrator",
	"Medium White Vibrator",
	"Small White Vibrator",
	"Flowers",
	"Cane",
	"Grenade",
	"Teargas",
	"Molotov",
	" ",
	" ",
	" ",
	"Colt 45",
	"Colt 45 (Silenced)",
	"Desert Eagle",
	"Normal Shotgun",
	"Sawnoff Shotgun",
	"Combat Shotgun",
	"Micro Uzi (Mac 10)",
	"MP5",
	"AK47",
	"M4",
	"Tec9",
	"Country Rifle",
	"Sniper Rifle",
	"Rocket Launcher",
	"Heat-Seeking Rocket Launcher",
	"Flamethrower",
	"Minigun",
	"Satchel Charge",
	"Detonator",
	"Spray Can",
	"Fire Extinguisher",
	"Camera",
	"Night Vision Goggles",
	"Infrared Vision Goggles",
	"Parachute",
	"Fake Pistol",
	"Unknown",
	"Vehicle",
	"Helicopter Blades",
	"Explosion",
	"Unknown",
	"Drowned",
	"Explosion"
};
3 - SFCRRPG.pwn(64 : error 075: input line too long (after substitutions)
Код HTML:
new glob522D4[500] = { -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
4 - (1210) : error 017: undefined symbol "IRC_GetUserChannelMode"
(1213) : error 014: invalid statement; not in switch
(1213) : error 029: invalid expression, assumed zero
(1213 -- 1214) : warning 215: expression has no effect
(1214) : error 001: expected token: ";", but found "case"
(1214) : fatal error 107: too many error messages on one line

Код HTML:
	functionC8(Float:arg0, arg1)
{
	return floatcmp(arg0, arg1) == 0;
}

function350(arg0, arg1, arg2)
{


	new var0[2];
	IRC_GetUserChannelMode(arg0, arg1, arg2, var0);
	switch(var0[0]) {
		case 33:
		case 43:
		case 46:
		case 64:
		case 42:
		case 37:
		case 38:
		case 126:
			return 1;
	}
	return 0;
}
Reply
#2

In Error 1 and 2 change the [1] into [0], i am not sure.
Reply
#3

Error 1 and 2 solved thank you so much .
but error 3 and 4 still continues :/
Reply
#4

3 is too long line. Also in pawn from what I've read, arrays set themselves automatically to zero if nothing is declared inside them, in other languages they do at least and wouldn't think it's different here.
pawn Код:
new glob522D4[500];
Explaination: Imagine variables being dots and 1-dimensional arrays being a line (which it actually is). If you just declare an integer/a variable: "new lal;" it will automatically set "lal = 0". Now how do you actually draw a line on a paper? With the help of dots, which a 1-dimensional array contains of. Therefore variable[0] = 0, variable[1] = 0... and so on.

4th, sadly I don't know anything about IRC. Basically, you don't have any definition of what the function IRC_GetUserChannelMode is. Maybe as easy as that you have not yet done anything with the cases. ^^Dunno'.
Reply
#5

Thanks for wide explanation Hansrutger u solved 3. problem
Now there's one more. :/
Reply
#6

Guys please just 4. error :/
Reply
#7

Код:
new glob3B58[3][32] = {
Код:
new glob3C24[55][32] = {
Quote:
Originally Posted by turkromeo
Посмотреть сообщение
4 - (1210) : error 017: undefined symbol "IRC_GetUserChannelMode"
(1213) : error 014: invalid statement; not in switch
(1213) : error 029: invalid expression, assumed zero
(1213 -- 1214) : warning 215: expression has no effect
(1214) : error 001: expected token: ";", but found "case"
(1214) : fatal error 107: too many error messages on one line
Read the damn errors...
You don't have declared a function called 'IRC_GetUserChannelMode'.
Reply
#8

Yeah u right but i do not know how to do , irc..
Reply
#9

You have decompiled someones gamemode, don't you? In that case you will get more and more errors, I don't think you will get it fully working.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)