strlen problem
#3

Quote:
Originally Posted by SmiT
Посмотреть сообщение
Try using: if ( isnull ( params ) ) return SendClientMessage( playerid, GREY, "Command Useage: /me <text>" );
Or show us your whole command.
Use this. Or if you prefer sscanf you can use:

Код:
CMD:me( playerid, params[] )
{
	new
	    variable[ 128 ];,

	if( sscanf( params, "s", variable ) ) SendClientMessage( playerid, WHITE, "[ > ]{FF7E7E} Command USAGE: /me [text]" ); // s = string, variable = variable (example: text).
	else
	{
		// code.
	}
	return true;
}
Reply


Messages In This Thread
strlen problem - by Sascha - 20.10.2011, 18:23
Re: strlen problem - by SmiT - 20.10.2011, 18:56
Re: strlen problem - by Tomejus - 20.10.2011, 19:22

Forum Jump:


Users browsing this thread: 1 Guest(s)