sscanf warrning
#1

Hello guys,
Maybe someone can help me?

Код:
new Check[ 2 ][ 128 ];
	sscanf( params, "s[ 128 ]s[ 128 ]", Check[ 0 ], Check[ 1 ] );

	if( !strcmp( Check[ 0 ], "say" ) )
	{
		if( !Check[ 1 ][ 0 ] ) return SendMessage( playerid, BLUE, "COMMAND: /a say <text>." );
		if( strlen( Check[ 1 ] ) > 128) return SendMessage( playerid, RED, "ERROR." );
		new string[ 256 ];
		format( string, sizeof( string ), "Admin %s  | %s", NameRPG( playerid ), Check[ 1 ] );
		SendClientMessageToAll(-1, string );
		return true;
	}
I got a few warrning:
Код:
[20:09:13] sscanf warning: Invalid data length.
[20:09:13] sscanf warning: Invalid character in data length.
Reply


Messages In This Thread
sscanf warrning - by Elvinas - 04.06.2017, 17:25
Re: sscanf warrning - by skuller12 - 04.06.2017, 17:33
Re: sscanf warrning - by Elvinas - 04.06.2017, 17:40
Re: sscanf warrning - by skuller12 - 04.06.2017, 18:07
Re: sscanf warrning - by Elvinas - 04.06.2017, 18:27
Re: sscanf warrning - by skuller12 - 04.06.2017, 18:34
Re: sscanf warrning - by Toroi - 04.06.2017, 18:34
Re: sscanf warrning - by Elvinas - 04.06.2017, 18:39

Forum Jump:


Users browsing this thread: 2 Guest(s)