Need help with /help [message] command.
#1

Here is my code:

Код:
	if(strcmp(cmd, "/help", true) == 0)
	{
	    tmp = strtok(cmdtext, idx);
	    if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /help [MESSAGE]");
		new string[250];
		format(string, sizeof(string), "[ ! ] %s[ID:%d] asks help:%s", name, playerid, strlen(tmp));
		SendClientMessageToAdmins(string);
		SendClientMessage(playerid, GREEN, "You Message Has Been Sent To Online Admins.");
	}
And my problem is, if i write /help this is just example

It will say to admins: [ ! ] Paul_Newton ask help: his

But if i write /help thisisjustexample

It will say to admins: [ ! ] Paul_Newton ask help: hisisjustexample
Reply


Messages In This Thread
Need help with /help [message] command. - by Randomai - 16.02.2011, 06:06
Re: Need help with /help [message] command. - by park4bmx - 16.02.2011, 06:45
Re: Need help with /help [message] command. - by Mean - 16.02.2011, 09:45
Re: Need help with /help [message] command. - by Randomai - 16.02.2011, 12:40
Re: Need help with /help [message] command. - by wups - 16.02.2011, 12:42
Re: Need help with /help [message] command. - by Randomai - 16.02.2011, 12:47
Re: Need help with /help [message] command. - by park4bmx - 16.02.2011, 15:02
Re: Need help with /help [message] command. - by HyperZ - 16.02.2011, 15:07
Re: Need help with /help [message] command. - by JaTochNietDan - 16.02.2011, 15:35
Re: Need help with /help [message] command. - by Calgon - 16.02.2011, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)