View Single Post
Old 02/01/2020, 12:36 PM   #3
YouShootIDodge
Big Clucker
 
Join Date: May 2019
Posts: 79
Reputation: 15
Default Re: newline GameTextForPlayer not work

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~n~", reward_exp);
        strcat(final, str);
    }
    if(reward_criminal > 0) {
        format(str, sizeof(str), "~w~+%i criminal~n~", reward_criminal);
        strcat(final, str);
    }
    if(reward_cop > 0) {
        format(str, sizeof(str), "~w~+%i cop~n~", reward_cop);
        strcat(final, str);
    }
    if(reward_money > 0) {
        format(str, sizeof(str), "~w~+%i$~n~", reward_money);
        strcat(final, str);
    }
    GameTextForPlayer(playerid,final, 3000, 3);
YouShootIDodge is offline   Reply With Quote