Problema Compile
#1

Salutare , am si eu o mica problema cu gm-ul meu .. am incercat sa implementez un fs in gm .. iar cand dau compile imi apar aceste errori

Код:
C:\Users\xxxx\Desktop\strike arena\gamemodes\xxxx.pwn(40145) : warning 219: local variable "AC_BS_GivePlayerMoney" shadows a variable at a preceding level
C:\Users\xxxx\Desktop\strike arena\gamemodes\xxxx.pwn(46797) : warning 219: local variable "hLevel" shadows a variable at a preceding level
C:\Users\xxxx\Desktop\strike arena\gamemodes\xxxx.pwn(46802) : error 022: must be lvalue (non-constant)
C:\Users\xxxx\Desktop\strike arena\gamemodes\xxxx.pwn(46802) : warning 215: expression has no effect
C:\Users\xxxx\Desktop\strike arena\gamemodes\xxxx.pwn(46823) : error 032: array index out of bounds (variable "AHouseInteriors")
C:\Users\xxxx\Desktop\strike arena\gamemodes\xxxx.pwn(46825) : error 032: array index out of bounds (variable "AHouseInteriors")
C:\Users\xxxx\Desktop\strike arena\gamemodes\xxxx.pwn(46797) : warning 203: symbol is never used: "hLevel"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Liniile 46823 si 46825

Код:
// Set the player inside the new interior of the house
SetPlayerInterior(OtherPlayer, AHouseInteriors[hLevel][InteriorID]);
// Set the position of the player at the spawn-location of the house's interior
SetPlayerPos(OtherPlayer, AHouseInteriors[hLevel][IntX], AHouseInteriors[hLevel][IntY], AHouseInteriors[hLevel][IntZ]);
Enum-ul

Код:
// Setup a custom type that holds all data about a house-interior (selected when entering a house, based on the house-level)
enum THouseInterior
{
	InteriorName[50], // Holds the name of the interior
	InteriorID, // Holds the interior-id
	Float:IntX, // Holds the X-coordinate of the spawn-location where you enter the house
	Float:IntY, // Holds the Y-coordinate of the spawn-location where you enter the house
	Float:IntZ // Holds the Z-coordinate of the spawn-location where you enter the house
}
// Holds the data for all interiors for houses (each house-level has it's own interior)
new AHouseInteriors[][THouseInterior] =
{
	{"Dummy", 				0, 		0.0, 		0.0, 		0.0}, // Dummy interior (Level 0), as the house-level starts at 1
	{"Small motel room", 	10, 	2262.83, 	-1137.71, 	1050.63}, // Level 1
	{"Small house", 		2, 		2467.36, 	-1698.38, 	1013.51}, // Level 2
	{"Small house 2", 		1, 		223.00, 	1289.26, 	1082.20}, // Level 3
	{"Medium house", 		10, 	2260.76, 	-1210.45, 	1049.02}, // Level 4
	{"Medium house 2",		8, 		2365.42, 	-1131.85, 	1050.88}, // Level 5
	{"Duplex house",		12, 	2324.33, 	-1144.79, 	1050.71}, // Level 6
	{"Big house", 			15, 	295.14, 	1474.47, 	1080.52}, // Level 7
	{"Big duplex house", 	3, 		235.50, 	1189.17, 	1080.34}, // Level 8
	{"Huge house", 			7, 		225.63, 	1022.48, 	1084.07}, // Level 9
	{"Mansion", 			5, 		1299.14, 	-794.77, 	1084.00} // Level 10
};
Reply


Messages In This Thread
Problema Compile - by Chucky12324 - 01.07.2014, 15:47
Re: Problema Compile - by DiGiTaL_AnGeL - 01.07.2014, 16:42
Re: Problema Compile - by Chucky12324 - 01.07.2014, 18:21
Re: Problema Compile - by Smoky94 - 02.07.2014, 10:50
Re: Problema Compile - by r0bi - 03.07.2014, 09:18
Re: Problema Compile - by Smoky94 - 03.07.2014, 13:01
Re: Problema Compile - by r0bi - 03.07.2014, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)