16.05.2017, 15:52
Код:
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; }
Код:
sscanf warning: Strings without a length are deprecated, please add a destination size. sscanf warning: String buffer overflow.