01.11.2016, 11:26
(
Последний раз редактировалось Yashas; 01.11.2016 в 13:14.
)
There are a lot of people who will copy your example code and use it.
Bad practice.
or at least
Код:
new Test[600]; strcat(Test,"~y~1-~w~ Message 1~n~"); strcat(Test,"~y~2-~w~ Message 2~n~"); strcat(Test,"~y~3-~w~ Message 3~n~"); strcat(Test,"~y~4-~w~ Message 4~n~"); strcat(Test,"~y~5-~w~ Message 5~n~"); strcat(Test,"~y~6-~w~ Message 6"); TextMenuShowForPlayer(playerid,0,"Items",Test,6);
Код:
TextMenuShowForPlayer(playerid,0,"Items","~y~1-~w~ Message 1~n~~y~2-~w~ Message 2~n~~y~3-~w~ Message 3~n~~y~4-~w~ Message 4~n~~y~5-~w~ Message 5~n~~y~6-~w~ Message 6",6);
Код:
static Test[600], bool:need_format = true; if(need_format) { strcat(Test,"~y~1-~w~ Message 1~n~"); strcat(Test,"~y~2-~w~ Message 2~n~"); strcat(Test,"~y~3-~w~ Message 3~n~"); strcat(Test,"~y~4-~w~ Message 4~n~"); strcat(Test,"~y~5-~w~ Message 5~n~"); strcat(Test,"~y~6-~w~ Message 6"); need_format = false; } TextMenuShowForPlayer(playerid,0,"Items",Test,6);