sscanf warrning
#4

Код:
CMD:a(playerid, params[])
{
	new s[128], string[512];
	if(sscanf(params, "s[128]", s)) return SendMessage( playerid, BLUE, "COMMAND: /a say <text>." );
	{
	 	if( strlen(s) == 0)
	 	{
			if( pInfo[ playerid ][ Admin ] > 0 )
			{
				strcat( string, "CMD LIST" );
			}
			ShowPlayerDialog( playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, ""DIALOG_TITLE" ADMIN CMDS", string, "Close", "" );
			return true;
		}
		else
		{
			format( string, sizeof( string ), "Admin %s  | %s", NameRPG( playerid ), s );
			SendClientMessageToAll(-1, string );
			return true;
		}
	}
	return 1;
}
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: 1 Guest(s)