[HELP] RemoveBuilding Script-Errors -
Norey - 12.05.2014
Hello and Thanks to click to help me, Okay right..
My problem is Remove Building from Server 0.3z and I'm really need a fix of all those errors :/
First I started scripting yesterday and that's my first log-in the world.. I made my own script but,
I saw Remove Building map errors.. I started to search.. First I saw something like Inculde but I don't know how to Save it as a file .inc - I saw alot of epic to help but no-thing helping..
You can give me the code of it? and give me .inc for RemoveBuilding? I hope you can help me!
Codes of the map
Download link of the codes - Please post the codes in the script and give me to compile it -:
http://pastebin.com/TpLxECAc
Waiting your help :/
Re: [HELP] RemoveBuilding Script-Errors -
Scottas - 12.05.2014
Add your code inside OnPlayerConnect, like this for example:
pawn Code:
public OnPlayerConnect(playerid)
{
RemoveBuilding....
RemoveBuilding....
}
In your gamemode or filterscript.
Re: [HELP] RemoveBuilding Script-Errors -
Norey - 12.05.2014
Quote:
Originally Posted by Scottas
Add your code inside OnPlayerConnect, like this for example:
pawn Code:
public OnPlayerConnect(playerid) { RemoveBuilding.... RemoveBuilding.... }
In your gamemode or filterscript.
|
error 017: undefined symbol "RemoveBuildingForPlayer"
public function lacks forward declaration (symbol "OnPlayerConnect")
Re: [HELP] RemoveBuilding Script-Errors -
Scottas - 12.05.2014
pawn Code:
#include a_samp
main()
{
print("your server");
}
public OnPlayerConnect(playerid)
{
RemoveBuilding....
RemoveBuilding....
}
Re: [HELP] RemoveBuilding Script-Errors -
Norey - 12.05.2014
Quote:
Originally Posted by Scottas
pawn Code:
#include a_samp
main() { print("your server"); } public OnPlayerConnect(playerid) { RemoveBuilding.... RemoveBuilding.... }
|
Still :/ I complied it but in server, the Buildings still no.. you can compile it and give me the Fliterscript?
Re: [HELP] RemoveBuilding Script-Errors -
SAMProductions - 12.05.2014
All you need is to update your a_samp.inc (Include) from the Latest Package of SA-MP.
Better need to update all includes.
After updating your a_samp.inc (Include),
add this at the upper corner of your GameMode "
#include <a_samp>".
EDIT :-
As Scottas said, add "
RemoveBuildingForPlayer..." in OnPlayerConnect Callback.
Re: [HELP] RemoveBuilding Script-Errors -
Norey - 12.05.2014
Quote:
Originally Posted by SAMProductions
All you need is to update your a_samp.inc (Include) from the Latest Package of SA-MP.
Better need to update all includes.
|
if you want help me, upload all those inculdes
I'm trying to update a_samp
Re: [HELP] RemoveBuilding Script-Errors -
Norey - 12.05.2014
I tryed to update a_samp and all, I tryed to add on PlayerConnect Callback, still not working.. the help? XD
Re: [HELP] RemoveBuilding Script-Errors -
SAMProductions - 12.05.2014
Oh well, try updating your a_players.inc (Include),
or simply add this on your a_players.inc (Include);
Code:
native RemoveBuildingForPlayer(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius);
Then, after that.
add this at the upper corner of your GameMode "
#include <a_players>".
Re: [HELP] RemoveBuilding Script-Errors -
iZN - 12.05.2014
Quote:
Originally Posted by SAMProductions
Oh well, try updating your a_players.inc (Include),
or simply add this on your a_players.inc (Include);
Code:
native RemoveBuildingForPlayer(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius);
Then, after that.
add this at the upper corner of your GameMode " #include <a_players>".
|
You don't need to include a_players, a_samp does includes every other includes of SA-MP.
Re: [HELP] RemoveBuilding Script-Errors -
SAMProductions - 12.05.2014
Quote:
Originally Posted by iZN
You don't need to include a_players, a_samp does includes every other includes of SA-MP.
|
As he said, he updates it and nothing works.
Re: [HELP] RemoveBuilding Script-Errors -
Norey - 12.05.2014
Code:
E:\SAMP Servers information\[0.3z] SAMP Gamemodes\[0.3z - ENG] XXX\[0.3z - ENG] XX Roleplay\pawno\include\a_players.inc(124) : error 021: symbol already defined: "RemoveBuildingForPlayer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
I've a idea, you can compile those Remove Build and I'll see what you do in the fliterscript and i'll learn it?
Please:
http://pastebin.com/TpLxECAc
Re: [HELP] RemoveBuilding Script-Errors -
SAMProductions - 12.05.2014
C'mon man, it's already defined. But try updating it.
Delete one of it,
Delete one;
Code:
native RemoveBuildingForPlayer(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius);
As i said, just try updating it.
Just try updating your a_players.inc (Include) to a newer ones.
All you need is to update your a_players.inc (Include) from the Latest Package of SA-MP.
Re: [HELP] RemoveBuilding Script-Errors -
Norey - 12.05.2014
Quote:
Originally Posted by SAMProductions
C'mon man, it's already defined. But try updating it.
Delete one of it,
Delete one;
Code:
native RemoveBuildingForPlayer(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius);
As i said, just try updating it.
Just try updating your a_players.inc (Include) to a newer ones.
All you need is to update your a_players.inc (Include) from the Latest Package of SA-MP.
|
3aaaaaaaaaaaaaa, I got it :
native RemoveBuildingForPlayer(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius);
I updated.. you can please help me to do it Fliterscript? and give me? Please !
Re: [HELP] RemoveBuilding Script-Errors -
SAMProductions - 12.05.2014
What do you mean help you to do it in Filterscript ?
Re: [HELP] RemoveBuilding Script-Errors -
Luis- - 12.05.2014
You have it in your script twice, asking for people to do the coding for you will get you nowhere.
Re: [HELP] RemoveBuilding Script-Errors -
Norey - 12.05.2014
Listen, I tryed to update a_players..
This the code I used:
Code:
#include a_samp
#include <a_samp>
#include <a_players>
#include <a_samp.inc>
main()
{
print("your server");
}
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 4063, 1578.4688, -1676.4219, 13.0703, 0.25);
RemoveBuildingForPlayer(playerid, 4064, 1571.6016, -1675.7500, 35.6797, 0.25);
RemoveBuildingForPlayer(playerid, 1525, 1549.8906, -1714.5234, 15.1016, 0.25);
RemoveBuildingForPlayer(playerid, 4228, 1568.2891, -1677.7813, 10.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
RemoveBuildingForPlayer(playerid, 1266, 1565.4141, -1722.3125, 25.0391, 0.25);
RemoveBuildingForPlayer(playerid, 4229, 1597.9063, -1699.7500, 30.2109, 0.25);
RemoveBuildingForPlayer(playerid, 4230, 1597.9063, -1699.7500, 30.2109, 0.25);
RemoveBuildingForPlayer(playerid, 1260, 1565.4141, -1722.3125, 25.0391, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1541.4453, -1713.3047, 14.4297, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1541.4531, -1709.6406, 13.0469, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1541.2969, -1702.6016, 14.4375, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1546.6016, -1693.3906, 14.4375, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1689.9844, 13.0469, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1546.8672, -1687.1016, 14.4375, 0.25);
RemoveBuildingForPlayer(playerid, 646, 1545.5234, -1678.8438, 14.0000, 0.25);
RemoveBuildingForPlayer(playerid, 1536, 1555.9297, -1677.1250, 15.1797, 0.25);
RemoveBuildingForPlayer(playerid, 646, 1553.8672, -1677.7266, 16.4375, 0.25);
RemoveBuildingForPlayer(playerid, 4032, 1568.2891, -1677.7813, 10.8203, 0.25);
RemoveBuildingForPlayer(playerid, 4232, 1568.2891, -1677.7813, 10.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1536, 1555.8906, -1674.1094, 15.1797, 0.25);
RemoveBuildingForPlayer(playerid, 646, 1553.8672, -1673.4609, 16.4375, 0.25);
RemoveBuildingForPlayer(playerid, 646, 1545.5625, -1672.2188, 14.0000, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1546.6016, -1664.6250, 14.4375, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1546.8672, -1658.3438, 14.4375, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1661.0313, 13.0469, 0.25);
RemoveBuildingForPlayer(playerid, 3975, 1578.4688, -1676.4219, 13.0703, 0.25);
RemoveBuildingForPlayer(playerid, 3976, 1571.6016, -1675.7500, 35.6797, 0.25);
RemoveBuildingForPlayer(playerid, 4192, 1591.6953, -1674.8516, 20.4922, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1541.4766, -1648.4531, 14.4375, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1541.4531, -1642.0313, 13.0469, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1541.7422, -1638.9141, 14.4375, 0.25);
RemoveBuildingForPlayer(playerid, 1260, 1538.5234, -1609.8047, 19.8438, 0.25);
RemoveBuildingForPlayer(playerid, 4025, 1777.8359, -1773.9063, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 4215, 1777.5547, -1775.0391, 36.7500, 0.25);
RemoveBuildingForPlayer(playerid, 4019, 1777.8359, -1773.9063, 12.5234, 0.25);
}
After compling:
Code:
E:\SAMP Servers information\SAMP 0.3z svr R1\pawno\include\a_objects.inc(43) : error 021: symbol already defined: "RemoveBuildingForPlayer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
You can make it and put it on pawno and compile it and give me both of file please?
Re: [HELP] RemoveBuilding Script-Errors -
Luis- - 12.05.2014
Really..?
pawn Code:
#include a_samp
#include <a_samp>
#include <a_players>
#include <a_samp.inc>
Use this.. You have included the RemoveBuildingForPlayer three times now, so no wonder it won't compile.
Re: [HELP] RemoveBuilding Script-Errors -
Beckett - 12.05.2014
pawn Code:
#include a_samp
#include <a_samp>
#include <a_players>
#include <a_samp.inc>
What are these?
You only need this because all he SAMP includes got merged in that a_samp.
EDIT: Too late :3
Re: [HELP] RemoveBuilding Script-Errors -
SAMProductions - 12.05.2014
First of all,
Why'd you include a_samp.inc twice, not twice but three times
?
Delete two of it.
Second,
RemoveBuildingForPlayer is already defined in a_objects.inc, But try updating it too.
Delete one of it.
Delete one;
Code:
native RemoveBuildingForPlayer(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius);
As i said, just try updating it.
Just try updating your a_samp.inc, a_players.inc, and a_objects.inc (Include) to a newer ones.
All you need is to update your a_samp.inc, a_players.inc, and a_objects.inc (Include) from the Latest Package of SA-MP.