Renaming a Dynamic Door
#2

the problem is exactly at strmp that you use,what it does is that it checks if they exactly write "name" or not(the word of name in stead of an string)
using sscanf and yCMD:
Код:
CMD:doorname(playerid, params[])
{
	if(sscanf(params, "ds", doorid, doorname) return SendClientMessage(playerid, color, "/doorname [doorid] [name]
	if(doorid == 1)//this is the format that u must use:if(doorid == x)
	{
	    new path[100]
	    format(path,sizeof(path),"/doors/door %d.ini", doorid);
	    Update3DTextLabelText(doorid, color, doorname);
	    dini_Set(path,"doorname",doorname);
	}
}
I hope this helps
if you need further help about it feel free to PM me
Reply


Messages In This Thread
Renaming a Dynamic Door - by RLGaming - 17.09.2012, 18:06
AW: Renaming a Dynamic Door - by arvifilter - 18.09.2012, 00:46
Re: Renaming a Dynamic Door - by RLGaming - 18.09.2012, 15:27
Re: Renaming a Dynamic Door - by arvifilter - 18.09.2012, 19:26
Re: Renaming a Dynamic Door - by RLGaming - 18.09.2012, 21:53

Forum Jump:


Users browsing this thread: 1 Guest(s)