Houses Checkpoints
#1

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 ??
Reply
#2

( 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.
Reply
#3

Please, post the lines of errors...

Post lines:

2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
Reply
#4

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);
}
}
}
Reply
#5

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

Guys please ..
Reply
#7

UP !
Reply
#8

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...]
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)