SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DOF2 and NewLine - Help me Please [XPG]MarlonCS Scripting Help 3 26/10/2014 08:15 PM
GameTextForPlayer Doesn't work :/ anantanni Help Archive 5 15/04/2011 08:22 PM
GameTextForPlayer doesn`t Work Manuel20 Help Archive 17 02/04/2010 03:13 PM
\n - newline doesnt work? :S Baff Help Archive 4 08/10/2009 06:21 PM


All times are GMT. The time now is 03:57 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.