Errors
#1

I have errors

pawn Код:
C:\Documents and Settings\Administrator.WINXPSP3\שולחן העבודה\GR-RP\gamemodes\MRP.pwn(6064) : error 017: undefined symbol "MAX_ZONE_NAME"
C:\Documents and Settings\Administrator.WINXPSP3\שולחן העבודה\GR-RP\gamemodes/MRP.pwn(6064) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\Administrator.WINXPSP3\שולחן העבודה\GR-RP\gamemodes\MRP.pwn(6064) : error 036: empty statement
C:\Documents and Settings\Administrator.WINXPSP3\שולחן העבודה\GR-RP\gamemodes\MRP.pwn(6064) : fatal error 107: too many error messages on one line
The line:
pawn Код:
new zone[MAX_ZONE_NAME];
Reply
#2

Add at the top of the script:

pawn Код:
#define MAX_ZONE_NAME 28
Reply
#3

Learn to read the errors. You haven't defined MAX_ZONE_NAME.
Reply
#4

Quote:
Originally Posted by Xyrex
Посмотреть сообщение
Add at the top of the script:

pawn Код:
#define MAX_ZONE_NAME 28
I tried it before i have 19 errors now :O
pawn Код:
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(6066) : warning 219: local variable "zone" shadows a variable at a preceding level
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(6067) : error 017: undefined symbol "GetPlayer2DZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(40008) : warning 219: local variable "zone" shadows a variable at a preceding level
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(40009) : error 017: undefined symbol "GetPlayer2DZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(45991) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46019) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46047) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46075) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46103) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46146) : warning 219: local variable "zone" shadows a variable at a preceding level
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46147) : error 017: undefined symbol "GetPlayer2DZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46222) : warning 219: local variable "zone" shadows a variable at a preceding level
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46223) : error 017: undefined symbol "GetPlayer2DZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46789) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46789) : error 017: undefined symbol "GetPlayer2DZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46821) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46821) : error 017: undefined symbol "GetPlayer2DZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46850) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46850) : error 017: undefined symbol "GetPlayer2DZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46879) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46879) : error 017: undefined symbol "GetPlayer2DZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46908) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(46908) : error 017: undefined symbol "GetPlayer2DZone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(53464) : warning 203: symbol is never used: "ret_memcpy"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(53464) : warning 203: symbol is never used: "zarea"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(53464) : warning 203: symbol is never used: "zone"
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\GR-RP\gamemodes\GRP.pwn(53464) : warning 203: symbol is never used: "zones"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


19 Errors.
Any one else?
Reply
#5

That is not caused by my #define.

You have to use that include: https://sampforum.blast.hk/showthread.php?tid=27598

(If you use it delete my #define)
Reply
#6

Fail copy-paste is fail. Just use in the zones include file (created by Mabako, IIRC) instead of ripping it of. Other than that, learn to understand the meaning of the errors and what's behind it.
Reply
#7

I use that include and i still have that errors
Reply
#8

pawn Код:
warning 219: local variable "zone" shadows a variable at a preceding level //means you've got the same variable defined twice or more times that conflict with eachother
error 017: undefined symbol "GetPlayer2DZone" //means the function is not defined/doesn't exist
warning 203: symbol is never used: "ret_memcpy" //never had this problem but if you used search it would give you an answer to use #pragma unused ret_memcpy
warning 203: symbol is never used: "zarea" //variable has been created but doesn't get used in the script making it pointless
you haven't giving much information really, just posted a bunch of errors without giving details on how your script is set up or what includes you use.
Reply
#9

I use the include already and i have this errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)