Some errors and warnings
#1

pawn Код:
D:\\gamemodes\im.pwn(2122) : warning 201: redefinition of constant/macro (symbol "hInfo")
D:\\gamemodes\im.pwn(2137) : error 021: symbol already defined: "hRent"
D:\\gamemodes\im.pwn(2144) : error 021: symbol already defined: "HouseInfo"
D:\\gamemodes\im.pwn(2685) : error 004: function "ProxDetector" is not implemented
D:\\gamemodes\im.pwn(2701) : error 004: function "ProxDetector" is not implemented
D:\\gamemodes\im.pwn(3882) : error 004: function "ValidateName" is not implemented
D:\\gamemodes\im.pwn(4069) : error 004: function "SetPlayerSkinEx" is not implemented
D:\\gamemodes\im.pwn(5442) : error 004: function "NameTimer" is not implemented
D:\\gamemodes\im.pwn(5544) : error 017: undefined symbol "PlayerToPoint"
D:\gamemodes\im.pwn(5549) : error 017: undefined symbol "PlayerToPoint"
D:\\gamemodes\im.pwn(5622) : error 004: function "ProxDetector" is not implemented
D:\gamemodes\im.pwn(5661) : error 017: undefined symbol "PlayerToPoint"
D:\\gamemodes\im.pwn(5669) : error 017: undefined symbol "PlayerToPoint"
D:\\gamemodes\im.pwn(5679) : error 017: undefined symbol "PlayerToPoint"
D:\\gamemodes\im.pwn(5681) : error 032: array index out of bounds (variable "HouseInfo")
D:\\gamemodes\im.pwn(5683) : error 032: array index out of bounds (variable "HouseInfo")
D:\\gamemodes\im.pwn(5685 -- 5686) : error 032: array index out of bounds (variable "HouseInfo")
D:\\gamemodes\im.pwn(5690 -- 5691) : error 032: array index out of bounds (variable "HouseInfo")
D:\\gamemodes\im.pwn(5696) : error 032: array index out of bounds (variable "HouseInfo")
D:\\gamemodes\im.pwn(5705) : error 017: undefined symbol "PlayerToPoint"
D:\\gamemodes\im.pwn(5729) : error 017: undefined symbol "PlayerToPoint"
D:\gamemodes\im.pwn(5745) : error 017: undefined symbol "PlayerToPoint"
D:\\gamemodes\im.pwn(5749) : error 017: undefined symbol "PlayerToPoint"
D:\\gamemodes\im.pwn(5754) : error 017: undefined symbol "PlayerToPoint"
D:\\gamemodes\im.pwn(5761) : error 017: undefined symbol "PlayerToPoint"
D:\\gamemodes\im.pwn(5768) : error 017: undefined symbol "PlayerToPoint"
D:\\gamemodes\im.pwn(5775) : error 017: undefined symbol "PlayerToPoint"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Lines starts from first warning:

pawn Код:
Float:hEntrancex,
new HouseInfo[97][hInfo];
ProxDetector(30.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ValidateName(playerid);
SetPlayerSkinEx(playerid);
NameTimer();
if(PlayerToPoint(10,i,2336.966308,2447.072021,4.928408))
else if(PlayerToPoint(5,i,2294.478027,2492.833007,6.589216))
ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
OMG I think I fucked up a line.. Can u help me out?
Reply
#2

This:
pawn Код:
if(PlayerToPoint(10,i,2336.966308,2447.072021,4.928408))
else if(PlayerToPoint(5,i,2294.478027,2492.833007,6.589216))
ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Replace with this:
pawn Код:
if(PlayerToPoint(10,i,2336.966308,2447.072021,4.928408)) continue;
else if(PlayerToPoint(5,i,2294.478027,2492.833007,6.589216))
ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
I think you missed a '}'
Reply
#3

Since you are new, and have difficulties finding missing brackets or maybe indenting ( in the future when you learn how to script more )

Bracket Finder:
https://sampforum.blast.hk/showthread.php?tid=171429

Indent:
http://dracoblue.net/tidy/pawn/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)