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



Undifined Symbol - Blademaster680 - 18.01.2014

Error: error 017: undefined symbol "tCP"

Код:
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print("Capture Zones Loaded Succesfully");
	print("--------------------------------------\n");
	
	CP[Idlewood] = CreateDynamicCP(1925.3003, -1791.3341, 13.3828, 5, -1, -1, 100);
	Zone[Idlewood] = GangZoneCreate(1839.726, -1930.57, 1950.008, -1772.66);
	UnderAttack[Idlewood] = -1;
	Captured[Idlewood] = -1;
	tCP[Idlewood] = TEAM_NONE;
	
	return 1;
}
Please help me. I dont know how to define that...


Re: Undifined Symbol - gahal156 - 18.01.2014

Define it the same way you defined the CP.


Re: Undifined Symbol - Smileys - 18.01.2014

pawn Код:
CP[Idlewood] = CreateDynamicCP(1925.3003, -1791.3341, 13.3828, 5, -1, -1, 100);
    Zone[Idlewood] = GangZoneCreate(1839.726, -1930.57, 1950.008, -1772.66);
    UnderAttack[Idlewood] = -1;
    Captured[Idlewood] = -1;
    CP[Idlewood] = TEAM_NONE;
you made a mistype at CP[Idlewood].


Re: Undifined Symbol - Blademaster680 - 18.01.2014

Yeah Fixed thanks