isnull problem
#6

Does not work with scanf
But it shows me the following errors:
Код:
 sscanf warning: Strings without a length are deprecated, please add a destination size.
 sscanf warning: Format specifier does not match parameter count.
 sscanf warning: Strings without a length are deprecated, please add a destination size.
 sscanf warning: Format specifier does not match parameter count.
Код:
CMD:n(playerid, params[])
{
	new string[128],msg[128],pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid,pname,sizeof(pname));
	if(sscanf(params,"sz",msg)) return SendClientMessage(playerid,COLOR_RED, " /n <Text>"); 

	format(string,sizeof(string),"[Near Players Messages]%s: %s",pname,msg);
	SendNearMessage( playerid, COLOR_WHITE, string, 15.0 );
	
	return 1;
}
what should I do
Reply


Messages In This Thread
isnull problem - by Vizi10 - 02.08.2018, 00:57
Re: isnull problem - by Rufio - 02.08.2018, 02:04
Re: isnull problem - by Akeem - 02.08.2018, 02:22
Re: isnull problem - by Dayrion - 02.08.2018, 02:24
Re: isnull problem - by Vizi10 - 02.08.2018, 08:50
Re: isnull problem - by Vizi10 - 02.08.2018, 09:45
Re: isnull problem - by Rufio - 02.08.2018, 10:01
Re: isnull problem - by Vizi10 - 02.08.2018, 10:28
Re: isnull problem - by Rufio - 02.08.2018, 11:08
Re: isnull problem - by Vizi10 - 02.08.2018, 16:26

Forum Jump:


Users browsing this thread: 1 Guest(s)