18.09.2012, 00:46
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:
I hope this helps
if you need further help about it feel free to PM me
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);
}
}
if you need further help about it feel free to PM me

