Code:
CMD:dann(playerid, params[])
{
AdminLevel(playerid,1)
if(sscanf(params,"s",params)) return SM(playerid, "Pouití: "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;
}
Code:
sscanf warning: Strings without a length are deprecated, please add a destination size.
sscanf warning: String buffer overflow.