[Unsolved]help with object destroy
#3

They are only able to delete the last 5 with /rrb1-5 i'll show the code
Код:
	if(strcmp(cmd, "/roadunblock2", true) == 0 || strcmp(cmd, "/rrb2", true) == 0)
	{
		if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] != 1)
		{
			SendClientMessage(playerid, COLOR_GREY, "[Error] Invalid faction");
			return 1;
		}
		if (RoadBlock2[playerid] == 0)
		{
			SendClientMessage(playerid, COLOR_GREY, "[Error] You have not deployed a roadblock");
			return 1;
		}
  	DestroyObject(roadblock2);
  	RoadBlock2[playerid] -= 1;
		SendClientMessage(playerid, COLOR_LSPD, "[Info] Roadblock #2 removed");
		return 1;
	}
If you need more code, please say then.. Because i need this fixed
Reply


Messages In This Thread
[Unsolved]help with object destroy - by Perker12345 - 10.01.2010, 16:35
Re: help with object destroy - by Finn - 10.01.2010, 16:54
Re: help with object destroy - by Perker12345 - 10.01.2010, 16:55
Re: [Unsolved]help with object destroy - by Perker12345 - 11.01.2010, 22:20
Re: [Unsolved]help with object destroy - by Perker12345 - 12.01.2010, 21:55
Re: [Unsolved]help with object destroy - by Hijolion - 12.01.2010, 22:34

Forum Jump:


Users browsing this thread: 1 Guest(s)