SA-MP Forums Archive
Some errors and warnings - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Some errors and warnings (/showthread.php?tid=289403)



Some errors and warnings - MusicBeast - 11.10.2011

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?


Re: Some errors and warnings - aRoach - 11.10.2011

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 '}'


Re: Some errors and warnings - [GOD]Dragonster82 - 11.10.2011

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/