I NEED HELP
#1

hi, i'm a newbie.
im move the script build base from gamemode survival the island => my gamemode
i move 1/3 code, but i have a lot error.
this is error
Код:
C:\pawno\include\callback.inc(472) : warning 219: local variable "slot" shadows a variable at a preceding level
C:\pawno\include\callback.inc(590) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\pawno\include\callback.inc(624) : warning 219: local variable "amount" shadows a variable at a preceding level
C:\pawno\include\callback.inc(676) : warning 219: local variable "id" shadows a variable at a preceding level
C:\pawno\include\callback.inc(720) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\pawno\include\mapdialog.inc(156) : warning 219: local variable "slot" shadows a variable at a preceding level
C:\pawno\include\vehicleplus.inc(1213) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\pawno\include\vehicleplus.inc(1565) : warning 219: local variable "angle" shadows a variable at a preceding level
C:\pawno\include\vehicleplus.inc(2138) : error 079: inconsistent return types (array & non-array)
C:\pawno\include\vehicleplus.inc(2159) : error 079: inconsistent return types (array & non-array)
C:\pawno\include\vehicleplus.inc(2359) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\pawno\include\vehicleplus.inc(2506) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\pawno\include\vehicleplus.inc(2537) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\pawno\include\bustaim.inc(182) : warning 219: local variable "angle" shadows a variable at a preceding level
C:\pawno\include\bustaim.inc(225) : warning 219: local variable "angle" shadows a variable at a preceding level
C:\pawno\include\air.inc(141) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\pawno\include\lagtroll.inc(11) : warning 219: local variable "vid" shadows a variable at a preceding level
DayS/gamemode.pwn(819) : error 017: undefined symbol "SLog"
DayS/gamemode.pwn(834) : error 017: undefined symbol "Init_STextDraw"
DayS/gamemode.pwn(840) : error 017: undefined symbol "LoadTent"
DayS/gamemode.pwn(849) : error 017: undefined symbol "Init_NPC"
DayS/gamemode.pwn(850) : error 017: undefined symbol "Init_ShopPrice"
DayS/gamemode.pwn(851) : error 017: undefined symbol "LoadVehicle"
DayS/gamemode.pwn(852) : error 017: undefined symbol "LoadLootSpawn"
DayS/gamemode.pwn(853) : error 017: undefined symbol "LoadSafeZone"
DayS/gamemode.pwn(854) : error 017: undefined symbol "LoadWarZone"
DayS/gamemode.pwn(855) : error 017: undefined symbol "LoadFlagZone"
DayS/gamemode.pwn(856) : error 017: undefined symbol "LoadSleepZone"
DayS/gamemode.pwn(857) : error 017: undefined symbol "LoadLayXangZone"
DayS/gamemode.pwn(858) : error 017: undefined symbol "LoadLayNuocZone"
DayS/gamemode.pwn(859) : error 017: undefined symbol "LoadCraftZone"
DayS/gamemode.pwn(860) : error 017: undefined symbol "LoadLayGoZone"
DayS/gamemode.pwn(861) : error 017: undefined symbol "LoadXDZone"
DayS/gamemode.pwn(867) : error 017: undefined symbol "Init_Object"
DayS/gamemode.pwn(868) : error 017: undefined symbol "Init_Actor"
DayS/gamemode.pwn(869) : error 017: undefined symbol "Init_Weather"
DayS/gamemode.pwn(874) : error 017: undefined symbol "Init_Sqlite"
DayS/gamemode.pwn(880) : error 017: undefined symbol "WasteDeAMXersTime"
DayS/gamemode.pwn(1196) : error 017: undefined symbol "LoadBases"
DayS/gamemode.pwn(1212) : error 017: undefined symbol "SaveBases"
DayS/gamemode.pwn(1214) : error 017: undefined symbol "SaveVehicle"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
[Finished in 13.2s]
Reply
#2

Let me break it down for you:

local variable "X" shadows a variable at a preceding level, where X is one of the several variables that cause the warning, is pretty self explanatory: a variable named "X" already exists in the indicated file (e.g: callback.inc). You have to go back, remove the new declaration (if not necessary) or rename the variable.

undefined symbol "X" means that the variable X is not being declared in the indicated file (gamemode.pwn).

For the first two parts, you're going to need some time to work on going through all these warnings. I doubt anyone will do it for you, so I hope I've helped.

--

Show me the following lines from vehicleplus.inc: 2138 and 2159 (they are part of a function/they are separate functions, so show me whatever applies).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)