/ddname help(small bug)
#1

I believe this is a small bug

Command:
Код:
CMD:ddname(playerid, params[]) {
	if(PlayerInfo[playerid][pAdmin] < 4) {
		SendClientMessageEx(playerid, COLOR_WHITE, "You are not authorized to use that command.");
	}
	else {

		new
			szName[128], doorid, doorname[128],
			iDoorID;

		if(sscanf(params, "ds[128]", iDoorID, szName)) {
			return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /ddname [doorid] [name]");
		}
		format(DDoorsInfo[doorid][ddDescription], 128, "%s", doorname);
		SendClientMessageEx(playerid, COLOR_WHITE, "You have changed the name of the door!");
		if(IsValidDynamicPickup(DDoorsInfo[doorid][ddPickupID])) DestroyDynamicPickup(DDoorsInfo[doorid][ddPickupID]);
		if(IsValidDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID])) DestroyDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID]);
		CreateDynamicDoor(doorid);
		SaveDynamicDoors();
		}
		return 1;
}
It doesn't recieve any warnings or anything, but I can't change the name of a DD when i do it, I have added everything in and such

Whenever I do the command(eg: /ddname [dooridhere] [namehere] - It just repeats the CMD

Any help on this please
Reply


Messages In This Thread
/ddname help(small bug) - by RLGaming - 17.09.2012, 01:03
Re: /ddname help(small bug) - by ThomasCarter - 17.09.2012, 01:12
Re: /ddname help(small bug) - by RLGaming - 17.09.2012, 01:15
Re: /ddname help(small bug) - by ReneG - 17.09.2012, 01:32
Re: /ddname help(small bug) - by RLGaming - 17.09.2012, 01:36
Re: /ddname help(small bug) - by ReneG - 17.09.2012, 02:41
Re: /ddname help(small bug) - by LuxurioN - 17.09.2012, 02:46
Re: /ddname help(small bug) - by RLGaming - 17.09.2012, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)