How can I do a command with params using YCMD?
#1

Код:
YCMD:meslek(playerid, params[], help)
{
	new meslekID[3];
	if(isnull(params))
	{
		SendClientMessage(playerid, -1, "<KULLANIM> /meslek [olustur/duzenle/sil/git]");
	}
	return 1;
}
I used like this. If player types the command like "/meslek olustur" it does something but I couldn't do it. Should I use sscanf or what?
Reply


Messages In This Thread
How can I do a command with params using YCMD? - by WhoIsYourDaddy - 28.02.2015, 10:17
Re: How can I do a command with params using YCMD? - by AroseKhanNiazi - 28.02.2015, 10:51
Re: How can I do a command with params using YCMD? - by WhoIsYourDaddy - 28.02.2015, 11:16
Re: How can I do a command with params using YCMD? - by CalvinC - 28.02.2015, 11:22
Re: How can I do a command with params using YCMD? - by WhoIsYourDaddy - 28.02.2015, 11:23

Forum Jump:


Users browsing this thread: 1 Guest(s)