Everytime a player joins, gates and cars duplicates
#1

So i fixed some mapping problems in my script, and now everytime a player joins, the cars in the CHP HQ, duplicates, so when 2 players are online, ir duplicates and another car spawns on the other, when 3 player joins it spawns another car there, and the gate with LAPD and CHP duplicates, any help?
Reply
#2

Remove your CreateObjects in OnPlayerConnect() and put them in OnGameModeInit()
Reply
#3

I don't got any CreateObject in OnPlayerConnect()
Reply
#4

CreateDynamicObject?
Reply
#5

Код:
(383) : error 017: undefined symbol "Streamer_OnPlayerEnterCP"
(403) : error 017: undefined symbol "Streamer_OnPlayerLeaveCP"
2976) : warning 213: tag mismatch
(2976) : warning 228: length of initialler exceeds size of the enum field
(3198) : warning 213: tag mismatch
(3198) : warning 228: length of initialler exceeds size of the enum field
(3255) : error 017: undefined symbol "SendClientMessageEx"
(3257) : error 017: undefined symbol "ProxDetector"
(3263) : error 017: undefined symbol "SendClientMessageEx"
(3265) : error 017: undefined symbol "ProxDetector"
(3270) : error 017: undefined symbol "SendClientMessageEx"
(3272) : error 017: undefined symbol "ProxDetector"
Cz:\Users\Sebastian\Desktop\HollyWood Roleplay\Scripttt\backup\HWRP.pwn
(3281) : error 017: undefined symbol "ProxDetector"
(3285) : error 017: undefined symbol "SendClientMessageEx"
(3293) : error 017: undefined symbol "SendClientMessageEx"
(3295) : error 017: undefined symbol "ProxDetector"
(3300) : error 017: undefined symbol "SendClientMessageEx"
(3302) : error 017: undefined symbol "ProxDetector"
(3306) : error 017: undefined symbol "GivePlayerCash"
(3307) : error 017: undefined symbol "SendClientMessageEx"
(3309) : error 017: undefined symbol "ProxDetector"
(3314) : error 017: undefined symbol "SendClientMessageEx"
(3316) : error 017: undefined symbol "ProxDetector"
(3322) : error 017: undefined symbol "SendClientMessageEx"
(3324) : error 017: undefined symbol "ProxDetector"
(3329) : error 017: undefined symbol "SendClientMessageEx"
(3331) : error 017: undefined symbol "ProxDetector"
(3336) : error 017: undefined symbol "SendClientMessageEx"
(3338) : error 017: undefined symbol "ProxDetector"

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


26 Errors.
..
Reply
#6

Post the code of the lines - it'll help us out - I'm guessing you're using a NGG edit - I'm guessing most of the " ProxDetector " are under the giftbox code?
Reply
#7

Well, i added all the mapped things here:

Код:
public OnGameModeInit()
{
	print("Gamemode started.");
	// Default Rates
	print("Gamemode started.");
	new a[][] =
	{
		"Unarmed (Fist)",
		"Brass K"
	};
//	for(new c=0;c<CAR_AMOUNT;c++)
	{
//		Gas[c] = GasMax;
	}
	#pragma unused a
	print("Gamemode started.");
	tollstatus = 0;
	tollopen = 0;
	carrieronestatus = 0;
	carriertwostatus = 0;
	//InitDatabase();
	//Audio_SetPack("default_pack", true);
	djson_GameModeInit();
	EnableStuntBonusForAll(0);
	new servergmtextstr[128];
	format(servergmtextstr, 128, "gamemodetext %s", SERVER_GM_TEXT);
	SendRconCommand(servergmtextstr); // DO NOT REMOVE THIS
	new string[42];
	new string1[MAX_PLAYER_NAME];
	ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
	DisableInteriorEnterExits();
	InitTurfWars();
	LoadTurfWars();
	InitPaintballArenas();
	LoadPaintballArenas();
	InitEventPoints();
	LoadEventPoints();
	LoadDynamicDoors();
	LoadDynamicMapIcons();
	LoadHouses();
	LoadGates();
	LoadBoxer();
	LoadStuff();
	//print("test111222.");
	LoadElevatorStuff();
	LoadServerStats();
	LoadThePay();
	LoadFamilies();
	LoadPoints();
	LoadcDealerships();
	SetTimer("MAINTENANCE_T5", 1800000, true);
	SetTimer("ProgressBar", 500, 1);
//	checkgastimer = SetTimer("CheckGas", RunOutTime, true);
//	stoppedvehtimer = SetTimer("StoppedVehicle", RunOutTime, true);
	//print("22247.");
	
 //testas
	RemoveBuildingForPlayer(playerid, 1265, 2488.8047, -1684.7891, 12.8125, 0.25);
	RemoveBuildingForPlayer(playerid, 760, 2520.6016, -1670.7422, 13.4375, 0.25);
	RemoveBuildingForPlayer(playerid, 760, 2519.0625, -1675.7109, 13.1953, 0.25);
	RemoveBuildingForPlayer(playerid, 1226, 2490.1016, -1654.6563, 16.1328, 0.25);
	RemoveBuildingForPlayer(playerid, 1265, 2491.2344, -1653.9609, 12.9219, 0.25);
	RemoveBuildingForPlayer(playerid, 1230, 2492.2656, -1653.9922, 12.8984, 0.25);
	RemoveBuildingForPlayer(playerid, 1211, 2495.2656, -1653.6719, 12.9141, 0.25);
	RemoveBuildingForPlayer(playerid, 1226, 2507.5938, -1663.0547, 16.2813, 0.25);
	RemoveBuildingForPlayer(playerid, 1265, 2505.6719, -1658.9063, 12.8125, 0.25);
	RemoveBuildingForPlayer(playerid, 1265, 2510.9219, -1656.1328, 12.8125, 0.25);
	RemoveBuildingForPlayer(playerid, 1211, 2505.6641, -1657.9375, 12.9219, 0.25);
	RemoveBuildingForPlayer(playerid, 1230, 2501.9297, -1650.5078, 12.9141, 0.25);
	RemoveBuildingForPlayer(playerid, 760, 2507.5859, -1646.5547, 12.5313, 0.25);
	RemoveBuildingForPlayer(playerid, 760, 2501.7500, -1645.5000, 12.2969, 0.25);
	RemoveBuildingForPlayer(playerid, 762, 2508.4141, -1635.4375, 11.7500, 0.25);
	RemoveBuildingForPlayer(playerid, 760, 2520.5469, -1662.8828, 13.1641, 0.25);
	RemoveBuildingForPlayer(playerid, 760, 2517.0938, -1656.0703, 13.0625, 0.25);
	RemoveBuildingForPlayer(playerid, 760, 2521.6953, -1653.0391, 13.2109, 0.25);
	RemoveBuildingForPlayer(playerid, 3694, 2461.8594, -1715.1484, 12.8828, 0.25);
	RemoveBuildingForPlayer(playerid, 1226, 2470.4688, -1674.1875, 16.3359, 0.25);
	RemoveBuildingForPlayer(playerid, 17879, 2484.5313, -1667.6094, 21.4375, 0.25);
	RemoveBuildingForPlayer(playerid, 1230, 2453.9609, -1653.6953, 12.6797, 0.25);
	RemoveBuildingForPlayer(playerid, 1230, 2475.0000, -1653.6094, 12.7891, 0.25);

	//Removed top on city hall - Wes Brown
	RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
	RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
and alot of more lines at the end


IT ends here:

Код:
	return 1;
}

	for(new f = 0; f < sizeof(FamilyInfo); f++)
	{
		for(new fv = 0; fv < MAX_GANG_VEHICLES; fv++)
		{
			FamilyVehicleInfo[f][fv][fvModelId] = 0;
			FamilyVehicleInfo[f][fv][fvSpawnx] = 0.0;
			FamilyVehicleInfo[f][fv][fvSpawny] = 0.0;
			FamilyVehicleInfo[f][fv][fvSpawnz] = 0.0;
			FamilyVehicleInfo[f][fv][fvSpawna] = 0.0;
			FamilyVehicleInfo[f][fv][fvPaintJob] = -1;
			FamilyVehicleInfo[f][fv][fvColor1] = 126;
			FamilyVehicleInfo[f][fv][fvColor2] = 126;
			FamilyVehicleInfo[f][fv][fvPrice] = 0;
//			FamilyVehicleInfo[f][fv][fvFuel] = 100.00;
			FamilyVehicleInfo[f][fv][fvId] = INVALID_VEHICLE_ID;
		}
	}
	
	print("Loaded Families!");
	LoadFamiliesHQ();
	LoadMOTDs();
	ClearReports();
	SetNameTagDrawDistance(60.0);
	print("Server fully loaded!");
	GiftAllowed = 1;
	News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
	format(string, sizeof(string), "Nothing");
	strmid(News[hAdd1], string, 0, strlen(string), 255);
	strmid(News[hAdd2], string, 0, strlen(string), 255);
	strmid(News[hAdd3], string, 0, strlen(string), 255);
	strmid(News[hAdd4], string, 0, strlen(string), 255);
	strmid(News[hAdd5], string, 0, strlen(string), 255);
	format(string1, sizeof(string1), "No-one");
	strmid(News[hContact1], string1, 0, strlen(string1), 255);
	strmid(News[hContact2], string1, 0, strlen(string1), 255);
	strmid(News[hContact3], string1, 0, strlen(string1), 255);
	strmid(News[hContact4], string1, 0, strlen(string1), 255);
	strmid(News[hContact5], string1, 0, strlen(string1), 255);
	PlayerHaul[43][pCapasity] = 100;
	PlayerHaul[44][pCapasity] = 100;
	PlayerHaul[45][pCapasity] = 50;
	PlayerHaul[46][pCapasity] = 50;
	format(objstore, sizeof(objstore), "SERVER: I got nothing, check back with me later.");
	format(cbjstore, sizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out.");
	gettime(ghour, gminute, gsecond);
	FixHour(ghour);
	print("testhere.");
	ghour = shifthour;

	if(!realtime)
	{
Reply
#8

Why are you removing buildings on public OnGameModeInit() ?

Search up Public OnPlayerConnect and delete the removebuildings on OnGameModeInit and place it in OnPlayerConnect

pawn Код:
//testas
    RemoveBuildingForPlayer(playerid, 1265, 2488.8047, -1684.7891, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2520.6016, -1670.7422, 13.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2519.0625, -1675.7109, 13.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 2490.1016, -1654.6563, 16.1328, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2491.2344, -1653.9609, 12.9219, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2492.2656, -1653.9922, 12.8984, 0.25);
    RemoveBuildingForPlayer(playerid, 1211, 2495.2656, -1653.6719, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 2507.5938, -1663.0547, 16.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2505.6719, -1658.9063, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2510.9219, -1656.1328, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1211, 2505.6641, -1657.9375, 12.9219, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2501.9297, -1650.5078, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2507.5859, -1646.5547, 12.5313, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2501.7500, -1645.5000, 12.2969, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 2508.4141, -1635.4375, 11.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2520.5469, -1662.8828, 13.1641, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2517.0938, -1656.0703, 13.0625, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2521.6953, -1653.0391, 13.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 3694, 2461.8594, -1715.1484, 12.8828, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 2470.4688, -1674.1875, 16.3359, 0.25);
    RemoveBuildingForPlayer(playerid, 17879, 2484.5313, -1667.6094, 21.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2453.9609, -1653.6953, 12.6797, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2475.0000, -1653.6094, 12.7891, 0.25);

    //Removed top on city hall - Wes Brown
    RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
Reply
#9

Wups, i got both, Remove Buildings and Create Dynamic there
Reply
#10

Quote:
Originally Posted by JamesJohnson
Посмотреть сообщение
Wups, i got both, Remove Buildings and Create Dynamic there
Are you getting any more errors?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)