Removebuilding
#1

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

Show the code.
Reply
#3

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

Код:
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;
}
Reply
#5

pawn Код:
/*

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)