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



Removebuilding - Dazza - 01.08.2012

Never really used this before but what every gamemode I use I get this error.
I've checked out the Samp Wiki page and I'm using the right code.

Код:
C:\Users\Darren\Downloads\game\gamemodes\game.pwn(79) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\Darren\Downloads\game\gamemodes\game.pwn(789) : error 010: invalid function or declaration



Re: Removebuilding - [MM]RoXoR[FS] - 01.08.2012

Show the code.


Re: Removebuilding - Vince - 01.08.2012

99% sure that you placed the code outside of any callback in your script. Check the example again.


Re: Removebuilding - Dazza - 01.08.2012

Код:
public OnPlayerConnect(playerid)
{
	GameTextForPlayer(playerid,"~w~Grand Larceny",3000,4);
  	SendClientMessage(playerid,COLOR_WHITE,"Welcome to {88AA88}G{FFFFFF}rand {88AA88}L{FFFFFF}arceny");
  	
  	// class selection init vars
  	gPlayerCitySelection[playerid] = -1;
	gPlayerHasCitySelected[playerid] = 0;
	gPlayerLastCitySelectionTick[playerid] = GetTickCount();

	//SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);
	
	/*

{
        RemoveBuildingForPlayer(playerid, 3672, 1921.6406, -2206.3906, 18.8828, 0.25);
	RemoveBuildingForPlayer(playerid, 3672, 2030.0547, -2249.0234, 18.8828, 0.25);
	RemoveBuildingForPlayer(playerid, 3672, 2030.0547, -2315.4297, 18.8828, 0.25);
	RemoveBuildingForPlayer(playerid, 3672, 2030.0547, -2382.1406, 18.8828, 0.25);
	RemoveBuildingForPlayer(playerid, 3672, 2112.9375, -2384.6172, 18.8828, 0.25);

	return 1;
}



Re: Removebuilding - Misiur - 01.08.2012

pawn Код:
/*

{
You have opened multiline comment and unnecessary bracket. Remove them both


Re: Removebuilding - Dazza - 01.08.2012

Quote:
Originally Posted by Misiur
Посмотреть сообщение
pawn Код:
/*

{
You have opened multiline comment and unnecessary bracket. Remove them both
Thanks for your help, It now means I can finish mapping a whole new part of Los Santos