SSCANF HELP
#1

Код:
CMD:dann(playerid, params[])
{
	AdminLevel(playerid,1)
	if(sscanf(params,"s",params)) return SM(playerid, "Pouћitн: "r"/dann [ TEXT ]");
	if(strlen(params) > 100) return SM(playerid, "Mod dlouhэ text");
	new string[111];
	TextDrawDiakritika(params);
	new ID;
	for(new i = 0; i < strlen(params); i++)
	{
		if(strfind(params[i], "~", true) == 0)
		{
		    ID ++;
		}
	}
	if((ID % 2) != 0) return SM(playerid,"Mбte љpatně napsanй barvy ("g"~"w") v textu");
	format(string, sizeof(string), "~w~%s", params);
	GameTextForAll(string, 10000, 1);
	return 1;
}
log warning :

Код:
 sscanf warning: Strings without a length are deprecated, please add a destination size.
 sscanf warning: String buffer overflow.
Reply


Messages In This Thread
SSCANF HELP - by itachi - 16.05.2017, 15:52
Re: SSCANF HELP - by ShihabSoft - 16.05.2017, 15:56
Re: SSCANF HELP - by JaKe Elite - 16.05.2017, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)