SA-MP Forums Archive
Houses Checkpoints - 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: Houses Checkpoints (/showthread.php?tid=216317)



Houses Checkpoints - Jaber_Brown - 25.01.2011

guys im need in pawno, and i want to make just like that guy wants to do
https://sampforum.blast.hk/showthread.php?tid=187762
I didnt every thing they told him there but when i compile , i get this fuckin' stupid errors

Код:
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2894) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterDynamicCP")
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2898) : error 017: undefined symbol "HouseCheckpoint"
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2898) : warning 215: expression has no effect
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2898) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2898) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2898) : fatal error 107: too many error messages on one line

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


4 Errors.
can any one help me ??


Re: Houses Checkpoints - gangstajoe - 25.01.2011

( 2894 ) Looks like the OnPlayerEnterDynamicCP is wrong, maybe the variables between the () are wrong..
( 2898 ) The variable HouseCheckpoint don't excists.
( 2898 ) There is a ']' wrong placed, and missing the ';'

I can only help further WITH the code, I can't do much with only errors.


Re: Houses Checkpoints - ricardo178 - 25.01.2011

Please, post the lines of errors...

Post lines:

2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900


Re: Houses Checkpoints - Jaber_Brown - 25.01.2011

i have put this in the callback

Код:
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseCheckpoint[h] == checkpointid)
{
new string[128];
if(HouseInfo[h][hOwned] == 1)
{
format(string, sizeof(string), "You are standing on %s's porch!", HouseInfo[h][hOwner]);
SendClientMessage(playerid, COLOR_GREEN, string);
}
else
{
format(string, sizeof(string), "House for sale, Price: $%d", HouseInfo[h][hValue]);
SendClientMessage(playerid, COLOR_GREEN, string);
}
and these i have put'em in an other place dunno what do u guys call it

Код:
	for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
if(HouseInfo[h][hSetted] == 1)
{
if(IsPlayerInRangeOfPoint(i, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
{
SetPlayerCheckpoint(i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 5.0);
}
}
}



Re: Houses Checkpoints - Jaber_Brown - 25.01.2011

if any one wants to help with team Viewer , im here


Re: Houses Checkpoints - Jaber_Brown - 25.01.2011

Guys please ..


Re: Houses Checkpoints - Jaber_Brown - 26.01.2011

UP !


Re: Houses Checkpoints - Sasino97 - 26.01.2011

Quote:

C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 894) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterDynamicCP")
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 89 : error 017: undefined symbol "HouseCheckpoint"
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 89 : warning 215: expression has no effect
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 89 : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 89 : error 029: invalid expression, assumed zero
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 89 : fatal error 107: too many error messages on one line

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


4 Errors.

1 - Put
Код:
forward OnPlayerEnterDynamicCP(playerid, etc...);
before any callback

2 - Check if in the file exists
Код:
new HouseCheckpoint[etc...]