i have a huge problem
#1

Код:
D:\BLAZERP\gamemodes\yerp.pwn(11138) : warning 204: symbol is assigned a value that is never used: "level"
D:\BLAZERP\gamemodes\yerp.pwn(28352) : warning 217: loose indentation
D:\BLAZERP\gamemodes\yerp.pwn(28367) : warning 217: loose indentation
D:\BLAZERP\gamemodes\yerp.pwn(29328) : warning 225: unreachable code
D:\BLAZERP\gamemodes\yerp.pwn(43349) : warning 219: local variable "szRank" shadows a variable at a preceding level
D:\BLAZERP\gamemodes\yerp.pwn(43327) : warning 204: symbol is assigned a value that is never used: "fam"
D:\BLAZERP\gamemodes\yerp.pwn(45917) : warning 217: loose indentation
D:\BLAZERP\gamemodes\yerp.pwn(45919) : warning 217: loose indentation
D:\BLAZERP\gamemodes\yerp.pwn(57465) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(65136) : warning 219: local variable "string" shadows a variable at a preceding level
D:\BLAZERP\gamemodes\yerp.pwn(66674) : warning 204: symbol is assigned a value that is never used: "gun"
D:\BLAZERP\gamemodes\yerp.pwn(67742) : warning 217: loose indentation
D:\BLAZERP\gamemodes\yerp.pwn(69392) : warning 202: number of arguments does not match definition
D:\BLAZERP\gamemodes\yerp.pwn(69396) : warning 219: local variable "Positions" shadows a variable at a preceding level
D:\BLAZERP\gamemodes\yerp.pwn(69399) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(69399) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(69399) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(69400) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(69400) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(69400) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(70199) : warning 219: local variable "object" shadows a variable at a preceding level
D:\BLAZERP\gamemodes\yerp.pwn(70230) : warning 219: local variable "object" shadows a variable at a preceding level
D:\BLAZERP\gamemodes\yerp.pwn(71196) : warning 204: symbol is assigned a value that is never used: "String"
D:\BLAZERP\gamemodes\yerp.pwn(78346) : warning 219: local variable "lstring" shadows a variable at a preceding level
D:\BLAZERP\gamemodes\yerp.pwn(78367) : warning 219: local variable "lstring" shadows a variable at a preceding level
D:\BLAZERP\gamemodes\yerp.pwn(78391) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(78391) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(78391) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(78401) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(78401) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(78401) : warning 213: tag mismatch
D:\BLAZERP\gamemodes\yerp.pwn(80820) : warning 219: local variable "string" shadows a variable at a preceding level
D:\BLAZERP\gamemodes\yerp.pwn(1341) : warning 204: symbol is assigned a value that is never used: "Fired"
D:\BLAZERP\gamemodes\yerp.pwn(1340) : warning 204: symbol is assigned a value that is never used: "FireworkTotal"
D:\BLAZERP\gamemodes\yerp.pwn(1340 -- 85714) : warning 203: symbol is never used: "RecentBans"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


35 Warnings.
LINE 57465
Код:
forward LoadLands();
public LoadLands()
{
    new string[128];

    for(new l = 0; l < MAX_LANDS; l++)
    {
		format(string, sizeof(string), "lands/%d.ini", l);

		new File: LandFile = fopen(string, io_read);
		if(LandFile)
		{
			new key[ 256 ] , val[ 256 ];
			new Data[ 256 ];
			while (fread(LandFile , Data , sizeof(Data)))
			{
				key = ini_GetKey(Data);
				if(strcmp(key , "landOwner" , true) == 0) { val = Ini_Value(Data); strmid(LandInfo[l][landOwner], val, 0, strlen(val)-1, 255); }
				if(strcmp(key , "landOwned" , true) == 0) { val = Ini_Value(Data); LandInfo[l][landOwned] = strval(val); }
				if(strcmp(key , "landType" , true) == 0) { val = Ini_Value(Data); LandInfo[l][landType] = strval(val); }
				if(strcmp(key , "landTotalObjects" , true) == 0) { val = Ini_Value(Data); LandInfo[l][landTotalObjects] = strval(val); }
				if(strcmp(key , "landCreated" , true) == 0) { val = Ini_Value(Data); LandInfo[l][landCreated] = strval(val); }
				for(new v = 0; v < 251; v++)
				{
 					format(string, 128, "Object%dModel",v);
					if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); objectInfo[v][objectModel] = strval(val); }
					format(string, 128, "Object%dDoor",v);
					if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); objectInfo[v][oDoor] = strval(val); }
					format(string, 128, "Object%dPosX",v);
					if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); objectInfo[v][oPosX] = floatstr(val); }
					format(string, 128, "Object%dPosY",v);
					if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); objectInfo[v][oPosY] = floatstr(val); }
					format(string, 128, "Object%dPosZ",v);
					if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); objectInfo[v][oPosZ] = floatstr(val); }
					format(string, 128, "Object%dRotX",v);
					if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); objectInfo[v][oRotX] = floatstr(val); }
					format(string, 128, "Object%dRotY",v);
					if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); objectInfo[v][oRotY] = floatstr(val); }
					format(string, 128, "Object%dRotZ",v);
					if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); objectInfo[v][oRotZ] = floatstr(val); }
					if(objectInfo[v][oModel] != 0 && objectInfo[v][oPosX] != 0.0 && objectInfo[v][oPosY] != 0.0 && objectInfo[v][oPosZ] != 0.0)
					{
						LandInfo[l][landObjects][v] = CreateDynamicObject(objectInfo[v][objectModel], objectInfo[v][oPosX], objectInfo[v][oPosY], objectInfo[v][oPosZ], objectInfo[v][oRotX], objectInfo[v][oRotY], objectInfo[v][oRotZ], .streamdistance = 150);
					}
				}
				if(strcmp(key , "landTextX" , true) == 0) { val = Ini_Value(Data); LandInfo[l][landTextX] = floatstr(val); }
				if(strcmp(key , "landTextY" , true) == 0) { val = Ini_Value(Data); LandInfo[l][landTextY] = floatstr(val); }
				if(strcmp(key , "landTextZ" , true) == 0) { val = Ini_Value(Data); LandInfo[l][landTextZ] = floatstr(val); }
				if(LandInfo[l][landCreated] != 0 && LandInfo[l][landTextX] != 0.0)
				{
					format(string, sizeof(string), "%s's Land (%d)", LandInfo[l][landOwner], l);
					LandInfo[l][landText] = CreateDynamic3DTextLabel(string, COLOR_REALRED, LandInfo[l][landTextX], LandInfo[l][landTextY], LandInfo[l][landTextZ],10);
				}
				fclose(LandFile);
			}
		}
	}
	return 1;
}
LINE 65136
Код:
public OnPlayerDeath(playerid, killerid, reason) {
	new
		string[128];
	if(IsPlayerConnected(killerid)) {
		new
			hour,
			minute,
			second,
			weaponname[32];

		gettime(hour,minute,second);
		FixHour(hour);
		hour = shifthour;
		GetWeaponName(reason, weaponname, sizeof(weaponname));
		foreach(Player, i)
		{
 			if(KDAShow[i] == 1 && PlayerInfo[i][pAdmin] >= 1)
   			{
				format(string, sizeof(string), "[DEATH] {AA3333}%s has killed %s, with a %s.", GetPlayerNameEx(killerid), GetPlayerNameEx(playerid), weaponname);
				SendClientMessageEx(i, COLOR_REPORT, string);
			}
		}
	    if(GetPVarInt(playerid, "PBM") > 0 && GetPVarInt(killerid, "PBM") > 0) {
        	SetPVarInt(killerid, "PBMK", GetPVarInt(playerid, "PBMK")+1);
        	SetPVarInt(playerid, "PBMD", GetPVarInt(playerid, "PBMD")+1);

			format(string, sizeof(string), "%s has killed %s, with a %s in the paintball game.", GetPlayerNameEx(killerid), GetPlayerNameEx(playerid), weaponname);
			foreach(Player, i) {
			    if(GetPVarInt(playerid, "PBM") == GetPVarInt(i, "PBM"))
			        SendClientMessage(i, COLOR_RED, string);
			}
			format(PlayerInfo[playerid][pKillLog9], 128, "%s", PlayerInfo[playerid][pKillLog8]);
			format(PlayerInfo[playerid][pKillLog8], 128, "%s", PlayerInfo[playerid][pKillLog7]);
			format(PlayerInfo[playerid][pKillLog7], 128, "%s", PlayerInfo[playerid][pKillLog6]);
			format(PlayerInfo[playerid][pKillLog6], 128, "%s", PlayerInfo[playerid][pKillLog5]);
			format(PlayerInfo[playerid][pKillLog5], 128, "%s", PlayerInfo[playerid][pKillLog4]);
			format(PlayerInfo[playerid][pKillLog4], 128, "%s", PlayerInfo[playerid][pKillLog3]);
			format(PlayerInfo[playerid][pKillLog3], 128, "%s", PlayerInfo[playerid][pKillLog2]);
			format(PlayerInfo[playerid][pKillLog2], 128, "%s", PlayerInfo[playerid][pKillLog1]);
			format(PlayerInfo[playerid][pKillLog1], 128, "%s", PlayerInfo[playerid][pKillLog0]);
			format(PlayerInfo[playerid][pKillLog0], 128, "(%d:%d:%d) %s killed me with %s (in paintball)", hour,minute,second,GetPlayerNameEx(killerid), weaponname);

			format(PlayerInfo[killerid][pKillLog9], 128, "%s", PlayerInfo[killerid][pKillLog8]);
			format(PlayerInfo[killerid][pKillLog8], 128, "%s", PlayerInfo[killerid][pKillLog7]);
			format(PlayerInfo[killerid][pKillLog7], 128, "%s", PlayerInfo[killerid][pKillLog6]);
			format(PlayerInfo[killerid][pKillLog6], 128, "%s", PlayerInfo[killerid][pKillLog5]);
			format(PlayerInfo[killerid][pKillLog5], 128, "%s", PlayerInfo[killerid][pKillLog4]);
			format(PlayerInfo[killerid][pKillLog4], 128, "%s", PlayerInfo[killerid][pKillLog3]);
			format(PlayerInfo[killerid][pKillLog3], 128, "%s", PlayerInfo[killerid][pKillLog2]);
			format(PlayerInfo[killerid][pKillLog2], 128, "%s", PlayerInfo[killerid][pKillLog1]);
			format(PlayerInfo[killerid][pKillLog1], 128, "%s", PlayerInfo[killerid][pKillLog0]);
		 	format(PlayerInfo[killerid][pKillLog0], 128, "(%d:%d:%d) killed %s with %s (in paintball)", hour,minute,second,GetPlayerNameEx(playerid), weaponname);

			format(string, sizeof(string), "(%d:%d:%d) %s killed %s with %s (in paintball)", hour, minute, second, GetPlayerNameEx(killerid), GetPlayerNameEx(playerid), weaponname);
			Log("logs/dm.log", string);
	    } else {
			format(PlayerInfo[playerid][pKillLog9], 128, "%s", PlayerInfo[playerid][pKillLog8]);
			format(PlayerInfo[playerid][pKillLog8], 128, "%s", PlayerInfo[playerid][pKillLog7]);
			format(PlayerInfo[playerid][pKillLog7], 128, "%s", PlayerInfo[playerid][pKillLog6]);
			format(PlayerInfo[playerid][pKillLog6], 128, "%s", PlayerInfo[playerid][pKillLog5]);
			format(PlayerInfo[playerid][pKillLog5], 128, "%s", PlayerInfo[playerid][pKillLog4]);
			format(PlayerInfo[playerid][pKillLog4], 128, "%s", PlayerInfo[playerid][pKillLog3]);
			format(PlayerInfo[playerid][pKillLog3], 128, "%s", PlayerInfo[playerid][pKillLog2]);
			format(PlayerInfo[playerid][pKillLog2], 128, "%s", PlayerInfo[playerid][pKillLog1]);
			format(PlayerInfo[playerid][pKillLog1], 128, "%s", PlayerInfo[playerid][pKillLog0]);
			format(PlayerInfo[playerid][pKillLog0], 128, "(%d:%d:%d) %s killed me with %s", hour,minute,second,GetPlayerNameEx(killerid), weaponname);

			format(PlayerInfo[killerid][pKillLog9], 128, "%s", PlayerInfo[killerid][pKillLog8]);
			format(PlayerInfo[killerid][pKillLog8], 128, "%s", PlayerInfo[killerid][pKillLog7]);
			format(PlayerInfo[killerid][pKillLog7], 128, "%s", PlayerInfo[killerid][pKillLog6]);
			format(PlayerInfo[killerid][pKillLog6], 128, "%s", PlayerInfo[killerid][pKillLog5]);
			format(PlayerInfo[killerid][pKillLog5], 128, "%s", PlayerInfo[killerid][pKillLog4]);
			format(PlayerInfo[killerid][pKillLog4], 128, "%s", PlayerInfo[killerid][pKillLog3]);
			format(PlayerInfo[killerid][pKillLog3], 128, "%s", PlayerInfo[killerid][pKillLog2]);
			format(PlayerInfo[killerid][pKillLog2], 128, "%s", PlayerInfo[killerid][pKillLog1]);
			format(PlayerInfo[killerid][pKillLog1], 128, "%s", PlayerInfo[killerid][pKillLog0]);
		 	if(JustSuicided[playerid]) {
				JustSuicided[playerid] = 0;
				format(PlayerInfo[killerid][pKillLog0], 128, "(%d:%d:%d) %s commited suicide", hour,minute,second, GetPlayerNameEx(killerid));
				format(string, sizeof(string), "(%d:%d:%d) %s commited suicide", hour,minute,second, GetPlayerNameEx(playerid));
				Log("logs/dm.log", string);
			} else {
				format(PlayerInfo[killerid][pKillLog0], 128, "(%d:%d:%d) %s killed %s with %s", hour,minute,second, GetPlayerNameEx(killerid), GetPlayerNameEx(playerid), weaponname);
				format(string, sizeof(string), "(%d:%d:%d) %s killed %s with %s", hour, minute, second, GetPlayerNameEx(killerid), GetPlayerNameEx(playerid), weaponname);
				Log("logs/dm.log", string);
			}
	 	}
	} else {
	    if(GetPVarInt(playerid, "PBM") > 0) {
			format(string, sizeof(string), "%s has died.", GetPlayerNameEx(playerid));
			foreach(Player, i) {
			    if(GetPVarInt(playerid, "PBM") == GetPVarInt(i, "PBM"))
			        SendClientMessage(i, COLOR_RED, string);
			}
		}
	}
	if(PlayerDraggedBy[playerid] != INVALID_PLAYER_ID) {
		IsCopDragging[PlayerDraggedBy[playerid]] = INVALID_PLAYER_ID;
	}

	if(IsPlayerAttachedObjectSlotUsed(playerid, 0))
		RemovePlayerAttachedObject(playerid, 0);

	IsCopDragging[playerid] = INVALID_PLAYER_ID;
	PlayerDraggedBy[playerid] = INVALID_PLAYER_ID;
	PlayerDragged[playerid] = 0;

	if(PlayerOnFire[playerid])
	{
		SendClientMessage(playerid, 0xff000000, "You died because of the fire!");
		StopPlayerBurning(playerid);
	}
/*	DestroyProgressBar(Hunger[playerid]);
	KillTimer(hungertimer[playerid]);
	KillTimer(GetPVarInt(playerid, "hungry1"));
	SetPVarInt(playerid, "hungry", 0);*/
    if(killerid == INVALID_PLAYER_ID) //BANK ROB
	{
	    if(BankJobPlayer == playerid)
     	{
	        //format(string, sizeof(string), "City Alert: Bank Robber %s was eliminated, the bank robbery has failed!", GetPlayerNameEx(playerid));
	        //SendClientMessageToAll(COLOR_LIGHTBLUE, string);
	        SetPlayerFree(playerid,999,"bank robbery");
	        PlayerInfo[playerid][pWantedLevel] = 0;
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
			SetPlayerWantedLevel(playerid, 0);
			PlayerInfo[playerid][pJailed] = 3;
			PlayerInfo[playerid][pJailTime] = 10*20;
			RemovePlayerAttachedObject(playerid, 0);
			TimeAfterBankJob = 3;
			BankJobPlayer = 999;
			BankJobTime = -1;

	   	}
	}
	if(BHPlayer == playerid) //Bounty Player
   	{
		new string[128];
		if(IsPlayerConnected(killerid))
		{
			format(string, sizeof(string), "Father, please forgive %s as he has killed the hunted %s.", GetPlayerNameEx(killerid), GetPlayerNameEx(playerid));
  			SendClientMessageToAll(COLOR_YELLOW, string);
		}
		else
		{
			format(string, sizeof(string), "Father, please forgive %s as he has died in a terible accident.", GetPlayerNameEx(playerid));
  			SendClientMessageToAll(COLOR_YELLOW, string);
		}
		RandomPrize(killerid);
		BHPlayer = 999;
		BH = 0;
		SetPVarInt(playerid,"BH",0);
   	}
	if(BankJobPlayer == playerid) //BANK ROB
   	{
       	if(IsACop(killerid))
		{
		    //format(string, sizeof(string), "City Alert: %s %s %s has eliminated bank robber %s and earned $%d!", BANK_JOB_KILLER_EARN);
		    //SendClientMessageToAll(COLOR_LIGHTBLUE, string);
			GivePlayerCash(killerid, BANK_JOB_KILLER_EARN);
			SetPlayerFree(playerid,killerid,"bank robbery");
		}
		else
		{
		    //format(string, sizeof(string), "City Alert: Bank Robber %s was eliminated, the bank robbery has failed!", GetPlayerNameEx(playerid));
	        //SendClientMessageToAll(COLOR_LIGHTBLUE, string);
	        SetPlayerFree(playerid,999,"bank robbery");
		}
		RemovePlayerAttachedObject(playerid, 0);
		PlayerInfo[playerid][pWantedLevel] = 0;
		SetPlayerVirtualWorld(playerid, 0);
		PlayerInfo[playerid][pVW] = 0;
		SetPlayerWantedLevel(playerid, 0);
		PlayerInfo[playerid][pJailed] = 2;
		PlayerInfo[playerid][pJailTime] = 10*20;
		TimeAfterBankJob = 3;
		BankJobPlayer = 999;
		BankJobTime = -1;
   	}
	if(GetPVarType(playerid, "SpecOff"))
	{
		SpawnPlayer(playerid);
		return 1;
	}

	if(Duel[killerid] == playerid)
	{
	    SetPlayerHealth(killerid, 0);
	    Duel[killerid] = INVALID_PLAYER_ID;
	    Duel[playerid] = INVALID_PLAYER_ID;
	}
	pTazer[playerid] = 0;
	InsideShamal[playerid] = INVALID_VEHICLE_ID;
	minigame[playerid] = 0;
	DeletePVar(playerid, "SpeedRadar");
 	DeletePVar(playerid, "UsingSprunk");
	DeletePVar(playerid, "usingfirstaid");
	KillTimer(GetPVarInt(playerid, "firstaid5"));
	DeletePVar(playerid, "usingpills");
	KillTimer(GetPVarInt(playerid, "pills5"));

	if(GetPVarInt(playerid, "Injured") == 1)
	{
     	SendClientMessage(playerid, COLOR_WHITE, "You appear to be stuck in limbo, medics have failed to revive you.");
 		KillEMSQueue(playerid);
	    ResetPlayerWeaponsEx(playerid);

   		new Float:X, Float:Y, Float:Z;
		new Float:health;
		GetPlayerHealth(playerid, health);
		SetPlayerHealth(playerid, health-5);
		GetPlayerPos(playerid, X, Y, Z);
		SetPlayerPos(playerid, X, Y, Z+5);
	    return 1;
	}
LINE 66674 69399 69400
Код:
	new gun = GetPlayerWeapon(playerid);
		if(IsADBWeap(playerid))
	    {
	        SetPlayerArmedWeapon(playerid, GetPVarInt(playerid, "LastWeapon"));
		}
		else
		{
			SetPlayerArmedWeapon(playerid, 0);
		}
  		if(GetPVarInt(playerid, "ToBeEjected") >= 1)
    	{
	       	SetPVarInt(playerid, "ToBeEjected", 0);
	       	RemovePlayerFromVehicle(playerid);
	       	new Float:X, Float:Y, Float:Z;
			GetPlayerPos(playerid, X, Y, Z);
			SetPlayerPos(playerid, X, Y, Z+2);

			if(GetPVarInt(playerid, "Injured") == 1)
  			{
  			    Streamer_UpdateEx(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
		   		SetPlayerPos(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
				SetPlayerVirtualWorld(playerid, GetPVarInt(playerid,"MedicVW"));
				SetPlayerInterior(playerid, GetPVarInt(playerid,"MedicInt"));
   				ClearAnimations(playerid);
				ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
   			}
   		}
LINE 69392
Код:
 // LAND DOORS!
		for(new i = 0; i < MAX_LANDS; i++)
		{
		    new playername[MAX_PLAYER_NAME];
		    GetPlayerName(playerid, playername, sizeof(playername));
		    if(IsPlayerInGangZone(LandInfo[i][landZone]))
		    {
		        for(new x = 0; x < 251; x ++)
		        {
		            new Positions[3], Rotations[3];
		            if(IsValidDynamicObject(LandInfo[i][landObjects][x]))
		            {
		        		GetDynamicObjectPos(LandInfo[i][landObjects][x], Positions[0], Positions[1], Positions[2]);
		        		GetDynamicObjectRot(LandInfo[i][landObjects][x], Rotations[0], Rotations[1], Rotations[2]);
						if(IsPlayerInRangeOfPoint(playerid, Positions[0], Positions[1], Positions[2], 6.0))
						{
					    	if(objectInfo[x][oDoor] == 1)
					    	{
					    	    if(strcmp(playername, LandInfo[i][landOwner], true) == 0 || PlayerInfo[playerid][pLandPerms] >= 1 && PlayerInfo[playerid][pEditLand] == i || TempLandPerm[playerid] == i)
					    	    {
					    	    	if(objectInfo[x][oDoorOpen] == 0)
					    	    	{
					    	    		SetDynamicObjectRot(LandInfo[i][landObjects][x], Rotations[0], 90.0, Rotations[2]);
                                		objectInfo[x][oDoorOpen] = 0;
					    	    	}
					    	    	else
					    	    	{
					    	        	SetDynamicObjectRot(LandInfo[i][landObjects][x], objectInfo[x][oRotX], objectInfo[x][oRotY], objectInfo[x][oRotZ]);
					    	    		objectInfo[x][oDoorOpen] = 1;
					    	    	}
								}
								else SendClientMessage(playerid, COLOR_GREY, "You do not own this land or have permission to open this door");
					    	}
					    	else if(objectInfo[x][oDoor] == 2)
					    	{
					    	    if(strcmp(playername, LandInfo[i][landOwner], true) == 0 || PlayerInfo[playerid][pLandPerms] >= 1 && PlayerInfo[playerid][pEditLand] == i || TempLandPerm[playerid] == i)
					    	    {
	    	    					if(objectInfo[x][oDoorOpen] == 0)
					    	    	{
					    	    		MoveDynamicObject(LandInfo[i][landObjects][x], Positions[0], Positions[1], Positions[2]+3, 50.0, Rotations[0], Rotations[1], 90.0);
                                		objectInfo[x][oDoorOpen] = 0;
					    	    	}
					    	    	else
					    	    	{
					    	        	MoveDynamicObject(LandInfo[i][landObjects][x], objectInfo[x][oPosX], objectInfo[x][oPosY], objectInfo[x][oPosZ], 50.0, objectInfo[x][oRotX], objectInfo[x][oRotY], objectInfo[x][oRotZ]);
					    	    		objectInfo[x][oDoorOpen] = 1;
					    	   	 	}
								}
								else SendClientMessage(playerid, COLOR_GREY, "You do not own this land or have permission to open this door.");
					    	}
						}
					}
		        }
		    }
		}
		// END OF LAND DOORS!
    }
	return 1;
}
LINE 70199 70230
Код:
}
stock CreateLandDoor(playerid, land, object, doortype)
{
	new gxland;
	if(MaxLandObjects(land)) return SendClientMessageEx(playerid, COLOR_GREY, "This land has reached max objects!");
	for(new x = 0; x < 251; x++)
	{
	    if(!IsValidDynamicObject(LandInfo[land][landObjects][x]))
	    {
	        gxland = x;
	        break;
	    }
	}
	new landobjectid = LandInfo[land][landObjects][gxland];
	new Float: fPlayerPos[3];
	GetPlayerPos(playerid, fPlayerPos[0], fPlayerPos[1], fPlayerPos[2]);

 	objectInfo[landobjectid][oPosX] = fPlayerPos[0] + 2;
	objectInfo[landobjectid][oPosY] = fPlayerPos[1] + 2;
	objectInfo[landobjectid][oPosZ] = fPlayerPos[2];
	objectInfo[landobjectid][oRotX] = 0.0;
	objectInfo[landobjectid][oRotY] = 0.0;
	objectInfo[landobjectid][oRotZ] = 0.0;
	objectInfo[landobjectid][oDoor] = doortype;
	objectInfo[landobjectid][objectModel] = object;

	LandInfo[land][landObjects][gxland] = CreateDynamicObject(objectInfo[landobjectid][objectModel], objectInfo[landobjectid][oPosX], objectInfo[landobjectid][oPosY], objectInfo[landobjectid][oPosZ], objectInfo[landobjectid][oRotX], objectInfo[landobjectid][oRotY], objectInfo[landobjectid][oRotZ], .streamdistance = 150.0);
	editingObject[playerid] = gxland;
    LandInfo[land][landTotalObjects]++;
	SetTimerEx("DelayedLandObjectEdit", 2500, 0, "ui", playerid, LandInfo[land][landObjects][gxland]);
	return 1;
}
LINE 71196
Код:
	}
				new String[128];
				format(string, sizeof(string), "   You have successfuly install a Green Neon !");
				SendClientMessageEx(playerid, COLOR_GRAD4, string);
				PlayerVehicleInfo[playerid][pvid][pvNeon] = 18649;
				SetPVarInt(playerid, "neonmenu", 0);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
		}
	}
LINE 78346
Код:
  if(response)
	    {
	     	new lstring[16384];
	        editingLandRT[playerid] = 2;
  			editingLandRot[playerid] = floatstr(inputtext);
  			if(IsFloat(inputtext))
  			{
				for(new o = 0; o < LandInfo[editingLand[playerid]][landTotalObjects]; o++)
 				{
					if(IsValidDynamicObject(LandInfo[editingLand[playerid]][landObjects][o]))
  					{
   		    			format(lstring, sizeof(lstring), "%s\nObject: %d", lstring, o);
					}
				}
				ShowPlayerDialogEx(playerid, LANDSRF, DIALOG_STYLE_LIST, "Lands - Editing a building", lstring, "Select", "Cancel");
  			}
  			else return ShowPlayerDialogEx(playerid, LANDSEY, DIALOG_STYLE_INPUT, "Lands - Editing a building", "Select Rotation Y (Invalid rotation!).", "Select", "Cancel");
		}
	}
LINE 71196-78401
Код:
				}
				new String[128];
				format(string, sizeof(string), "   You have successfuly install a Green Neon !");
				SendClientMessageEx(playerid, COLOR_GRAD4, string);
				PlayerVehicleInfo[playerid][pvid][pvNeon] = 18649;
				SetPVarInt(playerid, "neonmenu", 0);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
		}
	}
	if(dialogid == DIALOG_NEON3)
	{
	    if(GetPVarInt(playerid, "neonmenu") == 3)
		{
		    new pvid;
            if (IsNumeric(inputtext))
	        {
	            pvid = strval(inputtext)-1;
			    if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
			    {
					SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
					SetPVarInt(playerid, "neonmenu", 0);
					return 1;
				}
				if(PlayerVehicleInfo[playerid][pvid][pvNeon] == 18652)
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
					SetPVarInt(playerid, "neonmenu", 0);
					return 1;
				}
				new String[128];
				format(string, sizeof(string), "   You have successfuly install a White Neon!");
				SendClientMessageEx(playerid, COLOR_GRAD4, string);
				PlayerVehicleInfo[playerid][pvid][pvNeon] = 18652;
				SetPVarInt(playerid, "neonmenu", 0);
				format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has successfuly installed the  Neon to their Vehicle", GetPlayerNameEx(playerid), playerid);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
		}
	}
	if(dialogid == DIALOG_NEON4)
	{
	    if(GetPVarInt(playerid, "neonmenu") == 4)
		{
		    new pvid;
            if (IsNumeric(inputtext))
	        {
	            pvid = strval(inputtext)-1;
			    if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
			    {
					SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
					SetPVarInt(playerid, "neonmenu", 0);
					return 1;
				}
				if(PlayerVehicleInfo[playerid][pvid][pvNeon] == 18651)
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
					SetPVarInt(playerid, "neonmenu", 0);
					return 1;
				}
				new String[128];
				format(string, sizeof(string), "   You have successfuly install a Pink Neon!");
				SendClientMessageEx(playerid, COLOR_GRAD4, string);
				PlayerVehicleInfo[playerid][pvid][pvNeon] = 18651;
				SetPVarInt(playerid, "neonmenu", 0);
				format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has successfuly installed the  Neon to their Vehicle", GetPlayerNameEx(playerid), playerid);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
		}
	}
	if(dialogid == DIALOG_NEON5)
	{
	    if(GetPVarInt(playerid, "neonmenu") == 5)
		{
		    new pvid;
            if (IsNumeric(inputtext))
	        {
	            pvid = strval(inputtext)-1;
			    if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
			    {
					SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
					SetPVarInt(playerid, "neonmenu", 0);
					return 1;
				}
				if(PlayerVehicleInfo[playerid][pvid][pvNeon] == 18650)
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
					SetPVarInt(playerid, "neonmenu", 0);
					return 1;
				}
				new String[128];
				format(string, sizeof(string), "   You have successfuly install a Yellow Neon!");
				SendClientMessageEx(playerid, COLOR_GRAD4, string);
				PlayerVehicleInfo[playerid][pvid][pvNeon] = 18650;
				SetPVarInt(playerid, "neonmenu", 0);
				format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has successfuly installed the  Neon to their Vehicle", GetPlayerNameEx(playerid), playerid);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
		}
	}
	if(dialogid == DIALOG_NEON6)
	{
	    if(GetPVarInt(playerid, "neonmenu") == 6)
		{
		    new pvid;
            if (IsNumeric(inputtext))
	        {
	            pvid = strval(inputtext)-1;
			    if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
			    {
					SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
					SetPVarInt(playerid, "neonmenu", 0);
					return 1;
				}
				if(PlayerVehicleInfo[playerid][pvid][pvNeon] == 18647)
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
					SetPVarInt(playerid, "neonmenu", 0);
					return 1;
				}
				new String[128];
				format(string, sizeof(string), "   You have successfuly install a Red Neon!");
				SendClientMessageEx(playerid, COLOR_GRAD4, string);
				PlayerVehicleInfo[playerid][pvid][pvNeon] = 18647;
				SetPVarInt(playerid, "neonmenu", 0);
				format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has successfuly installed the  Electrict Shock Lock to their Vehicle", GetPlayerNameEx(playerid), playerid);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
		}
	}
LINE 80820
Код:
				new string[128];
				format(string, sizeof(string), "QUIZ: %s", question);
				SendClientMessageToAll(COLOR_LIGHTRED, string);
				SendClientMessageToAll(COLOR_LIGHTRED, "Type /answer along with your answer to answer the question!");
			}
			else
			{
			    ShowPlayerDialogEx(playerid, QUIZCREATE2, DIALOG_STYLE_INPUT, "Create a quiz!", "ERROR!\nInput the quiz answer", "Next", "Cancel");
			}
		}
		else
		{
			format(question, sizeof(question), "None");
		}
	}
	return 1;
}
LINE 1340
Код:
forward Firework(i);
public Firework(i)
{
    new Float:x, Float:y, Float:z;
    x = Frx[i];
    y = Fry[i];
    z = Frz[i];
    z += RocketHeight;
    if (RocketExplosions[i] == 0)
    {
        DestroyObject(Rocket[i]);//This creates the firework.
        DestroyObject(RocketLight[i]);//This creates the firework's light.
        DestroyObject(RocketSmoke[i]);//This is the smoke of the firework.
        CreateExplosion(x ,y, z, 4, 10);
        CreateExplosion(x ,y, z, 5, 10);
        CreateExplosion(x ,y, z, 6, 10);
    }
    else if (RocketExplosions[i] >= MAX_FIREWORKS)
    {
        for (new j = 0; j <= RocketSpread; j++)
        {
            CreateExplosion(x + float(j - (RocketSpread / 2)), y, z, 7, 10);//EXPLOSION!
            CreateExplosion(x, y + float(j - (RocketSpread / 2)), z, 7, 10);//EXPLOSION!
            CreateExplosion(x, y, z + float(j - (RocketSpread / 2)), 7, 10);//EXPLOSION!
        }
        RocketExplosions[i] = -1;
        FireworkTotal = 0;//Make Firework back to 0
        Fired = 0;//Make Fired back to 0
        return 1;
    }
    else
    {
        x += float(random(RocketSpread) - (RocketSpread / 2));//EXPLOSIONS!
        y += float(random(RocketSpread) - (RocketSpread / 2));//EXPLOSIONS!
        z += float(random(RocketSpread) - (RocketSpread / 2));//EXPLOSIONS!
        CreateExplosion(x, y, z, 7, 10);
    }
    RocketExplosions[i]++;//EXPLOSIONS!
    SetTimerEx("Firework", 250, 0, "i", i);//TIMER BUDDY! :)
    return 1;
}
ANY PLEASE CAN HELP ME HERE
Reply
#2

Change the "string" for example, as the variable "szRank" and put it with another name.
Reply
#3

can you fix it please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)