SA-MP Forums Archive
I have problem with JunkBuster. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I have problem with JunkBuster. (/showthread.php?tid=172645)



I have problem with JunkBuster. - GBLTeam - 30.08.2010

I have one problem with JunkBuster. Please help me thanks!

Problem with JunkBuster Please fast help me!


Code:
C:\Documents and Settings\Team\Desktop\pawno\include\JunkBuster.inc(3248) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
C:\Documents and Settings\Team\Desktop\C\C\gamemodes\CS.pwn(769) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Team\Desktop\C\C\gamemodes\CS.pwn(41588) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
p
Line 769: if(PlayerInfo[playerid][pAdmin] >= 1)
Line 41588: new giveplayerid;



On line 41587 i have added return 0;//only return 0 if you use your on chat system. (Godfather script returns 0, it has it's own chat system)
And when i remove it 41588 error leave.
There is other problem in JunkBuster.inc line 3248
Code:
#define OnPlayerEnterRaceCheckpoint JB_OnPlayerEnterRaceCheckpoint



Re: I have problem with JunkBuster. - willsuckformoney - 31.08.2010

means you have OnPlayerEnterRaceCheckpoint for error one and playerinfo do you have new PlayerInfo[MAX_PLAYERS][what ever] ?


Re: I have problem with JunkBuster. - cessil - 31.08.2010

line 769 seems like you have not created the variable PlayerInfo, you could have made a typo so check the exact spelling.

line 41588 means that line will never ever be reached, put it above line 41587


Re: I have problem with JunkBuster. - GBLTeam - 31.08.2010

Quote:
Originally Posted by willsuckformoney
View Post
means you have OnPlayerEnterRaceCheckpoint for error one and playerinfo do you have new PlayerInfo[MAX_PLAYERS][what ever] ?
I have new PlayerInfo[MAX_PLAYERS][pInfo];

and

Code:
public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}



Re: I have problem with JunkBuster. - GBLTeam - 31.08.2010

Quote:
Originally Posted by cessil
View Post
line 769 seems like you have not created the variable PlayerInfo, you could have made a typo so check the exact spelling.

line 41588 means that line will never ever be reached, put it above line 41587
What you man?


Re: I have problem with JunkBuster. - Grim_ - 31.08.2010

Search/ask in the JunkBuster topic.

[This forum requires that you wait 120 seconds between posts. Please try again in 11 seconds.] VERY ANNOYING


Re: I have problem with JunkBuster. - GBLTeam - 31.08.2010

Quote:
Originally Posted by Grim_
View Post
Search/ask in the JunkBuster topic.

[This forum requires that you wait 120 seconds between posts. Please try again in 11 seconds.] VERY ANNOYING
Im waiting there 2 days no answer!