Use string + textdraw on payday system NEED HELP
#1

I wanna make when i get payday to be in texdraws so i have this code

pawn Код:
SendClientMessage(i, COLOR_GREEN, "============[ PLACA ]============");
                    format(string, sizeof(string), "Placa: [%d$]  Porez: [-%d$]"/*, checks, TaxValue*/);
                    SendClientMessage(i, COLOR_WHITE, string);
                    if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
                    {
                      format(string, sizeof(string), "Racuni: [-%d$]"/*, ebill*/);
                        SendClientMessage(i, COLOR_GRAD1, string);
                    }
                    format(string, sizeof(string), "Stanje: [%d$]", account /*-*/ /*checks*/);
                    SendClientMessage(i, COLOR_WHITE, string);
                    format(string, sizeof(string), "Kamatna stopa: [0.%d] posto",tmpintrate);
                    SendClientMessage(i, COLOR_GRAD2, string);
                    format(string, sizeof(string), "Stecenih kamata: [%d$]", interest);
                    SendClientMessage(i, COLOR_GRAD3, string);
                    SendClientMessage(i, COLOR_GREEN, "=================================");
                    format(string, sizeof(string), "Stanje: [%d$]", PlayerInfo[i][pAccount]);
                    SendClientMessage(i, COLOR_GRAD5, string);
                    format(string, sizeof(string), "Najam: [-%d$]", rent);
                    SendClientMessage(i, COLOR_GRAD5, string);
I make textdraws so use this code

TextDrawSetString(House1, string);
TextDrawShowForPlayer(playerid,House1);
TextDrawShowForPlayer(playerid,House2);

Please help me i really need tnx
Reply
#2

I don't get what you need help with ? have you already created the Textdraws??

Also you need to do

TextDrawSetString(TEXTDRAW,string);


Once your made the Textdraws just edit the part that says SendClientMessage and Replace with TextDrawSetString(TextDraw, string);
Reply
#3

Quote:
Originally Posted by Shadow-
I don't get what you need help with ? have you already created the Textdraws??

Also you need to do

TextDrawSetString(TEXTDRAW,string);


Once your made the Textdraws just edit the part that says SendClientMessage and Replace with TextDrawSetString(TextDraw, string);
it dosent work, i dont get errors but text is weird :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)