View Single Post
Old 02/01/2020, 10:26 AM   #1
binnyl
Huge Clucker
 
Join Date: Aug 2017
Posts: 290
Reputation: 6
Default newline GameTextForPlayer not work

why no one second line is working on this GameTextForPlayer?

Code:
    new str[128], final[512];
    format(str, sizeof(str), "~y~mission passed!~n~");
    strcat(final, str);
    if(reward_exp > 0) {
        format(str, sizeof(str), "~w~+%i exp ", reward_exp);
        strcat(final, str);
    }
    if(reward_criminal > 0) {
        format(str, sizeof(str), "~w~+%i criminal ", reward_criminal);
        strcat(final, str);
    }
    if(reward_cop > 0) {
        format(str, sizeof(str), "~w~+%i cop ", reward_cop);
        strcat(final, str);
    }
    if(reward_money > 0) {
        format(str, sizeof(str), "~w~+%i$ ", reward_money);
        strcat(final, str);
    }
    GameTextForPlayer(playerid,final, 3000, 3);
the first line format(str, sizeof(str), "~y~mission passed!~n~");
the next ones no one is working
why?
binnyl is offline   Reply With Quote