-HELP- errors
#3

Код:
	if(DOF2_FileExists(MessageF())
	{
		DOF2_CreateFile(MessageF());
		DOF2_SetInt(MessageF(), "MsgTime", 5);
		for(new i=1; i<6; i++)
		{
			new nut[20], std[256];
			format(nut, sizeof(nut), "Message%d", i);
			format(std, sizeof(std), "{ffffff}%d. Message {ff0000}|| {ffff00}(Admin Name)", i);
			DOF2_SetString(MessageF(), nut, std);
		}
		DOF2_SaveFile();
	}
	if(DOF2_FileExists(SWShopF())
	{
		DOF2_CreateFile(SWShopF());
		DOF2_SetInt(SWShopF(), "CurrentL", -1);
	}
	AMT = SetTimer("AutoMsgP", 1000*60*DOF2_GetInt(MessageF(), "MsgTime"), false);
	if(DOF2_FileExists(TeamPF())
	{
		DOF2_CreateFile(TeamPF());
		DOF2_SetInt(TeamPF(), "GroveP", 0);
		DOF2_SetInt(TeamPF(), "AztecasP", 0);
		DOF2_SetInt(TeamPF(), "VagosP", 0);
		DOF2_SetInt(TeamPF(), "PoliceP", 0);
	}
	//grove 0 aztecas 1 vagos 2 police 3

	Points[0] = DOF2_GetInt(TeamPF(), "GroveP");
	Points[1] = DOF2_GetInt(TeamPF(), "AztecasP");
	Points[2] = DOF2_GetInt(TeamPF(), "VagosP");
	Points[3] = DOF2_GetInt(TeamPF(), "PoliceP");
next

Код:
public OnPlayerEnterCheckpoint(playerid)
{
	Points[0] = DOF2_GetInt(TeamPF(), "GroveP");
	Points[1] = DOF2_GetInt(TeamPF(), "AztecasP");
	Points[2] = DOF2_GetInt(TeamPF(), "VagosP");
	Points[3] = DOF2_GetInt(TeamPF(), "PoliceP");
	AntiDeAMX();
	if(CPS_IsPlayerInCheckpoint(playerid, SWShopCP))
	{
		new listitems[] = "{FF0000}FlameThrower(8,000$)\n{FFFFFF}ChainSaw(7,000$)";
		ShowPlayerDialog(playerid,Weapon,DIALOG_STYLE_LIST, "{FFFFFF}Ammunation",listitems,"Select","Cancel");
	}
	if(CPS_IsPlayerInCheckpoint(playerid, RaceCP))
	{
		if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "{FF00FF}Race On Time: {FFFFFF}You Are Not In A Vehicle");
		if(RaceActive == 1) return SendClientMessage(playerid, -1, "{FF00FF}Race On Time: {FFFFFF}Someone Is Already In The Race!");
		InROT[playerid] = 1;
		RaceActive = 1;
		SetVehiclePos(GetPlayerVehicleID(playerid), 2026.7345,852.3526,6.4600);
		SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.00);
		SetPlayerRaceCheckpoint(playerid, 0, 1836.8586,852.3408,9.7648,1312.6824,881.9849,6.5395 , 5); // show FIRST
		PlayerCD(playerid,150);
		new Rmsg[256];
		format(Rmsg, sizeof(Rmsg), "The Player %s Has Started The Race On Time! He Has 150 Sec To Finish It", GetName(playerid));
		SendClientMessageToAll(0xFFFF00, Rmsg);
	}
	if(CPS_IsPlayerInCheckpoint(playerid, AztecasCP))
	{
		if(!strcmp(DOF2_GetString(pFile(playerid), "Team"), "Aztecas"))
		{
						if(Flag[playerid] == 1)
						{
							RemovePlayerAttachedObject(playerid,3);
							GroveF = CreatePickup(2914, 1, 1480.2485,2195.8704,20.9065, 0);
							Flag[playerid] = 0;
						   // SetPlayerMapIcon( playerid, 10,2602.8953,2364.1018,39.3744 , 19z, 0, MAPICON_LOCAL );
							if(strcmp(DOF2_GetString(pFile(playerid), "Team"), "Grove", true))
Reply


Messages In This Thread
-HELP- errors - by Dumy - 06.09.2012, 15:15
Respuesta: -HELP- errors - by adrianxd - 06.09.2012, 16:05
Re: -HELP- errors - by Dumy - 06.09.2012, 16:14
Respuesta: -HELP- errors - by adrianxd - 06.09.2012, 16:25
Re: -HELP- errors - by Dumy - 06.09.2012, 16:37
Re: -HELP- errors - by Dumy - 07.09.2012, 07:54
Re: -HELP- errors - by MarkoN - 07.09.2012, 08:00
Re: -HELP- errors - by Dumy - 07.09.2012, 12:58
Re: -HELP- errors - by Dumy - 07.09.2012, 17:09
Re: -HELP- errors - by Dumy - 08.09.2012, 11:17

Forum Jump:


Users browsing this thread: 6 Guest(s)