.::[ Text Draw HELP ]::.
#1

i try to make /stats whit textdraw but i have problem here is code
pawn Code:
new coordsstring[1024];
    format(coordsstring, sizeof(coordsstring), "~n~%sLevel:[%d] Sex:[%s] Age:[%d] Cash:[$%d] Bank:[$%d] Ph:[%d]~n~", level,atext,age,cash,account,pnumber);
    format(coordsstring, sizeof(coordsstring), "~n~%sPlayingHours:[%d] Job:[%s] Respect:[%d/%d] DonateRank:[%s]~n~", ptime,jtext,exp,expamount,drank);
    format(coordsstring, sizeof(coordsstring), "~n~%sDrugs:[%d] Materials:[%d] Organisation:[%s] Rank:[%s]~n~",drugs,mats,ftext,rtext);
    TextDrawSetString(Statistika, coordsstring);
    TextDrawShowForPlayer(playerid, Statistika);

        //SendClientMessage(playerid, COLOR_WHITE,coordsstring);
        if (PlayerInfo[playerid][pAdmin] >= 1)
        {
            format(coordsstring, sizeof(coordsstring), "~n~%sHouse key [%d] Business key [%d] Veh1 [%d] Veh2 [%d] Veh3 [%d] local[%d]", housekey,bizkey,carkey,carkey2,carkey3,local);
            SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
        }
        SendClientMessage(playerid, COLOR_RED,"------------------------------------------------------------------------------------------------");
    }
}
and i get JUST HALF of stats. here is pic
http://slike.hr/slike/samp001_f53d7.png.html

Can anybody help me?

Reply
#2

You only get the third line as you overwrite coordsstring each time you format it again. Connect it instead to the prior format.
Reply
#3

pawn Code:
new coordsstring[1024];
    format(coordsstring, sizeof(coordsstring), "~n~%sLevel:[%d] Sex:[%s] Age:[%d] Cash:[$%d] Bank:[$%d] Ph:[%d]~n~", level,atext,age,cash,account,pnumber);
    format(coordsstring, sizeof(coordsstring), "%s~n~%sPlayingHours:[%d] Job:[%s] Respect:[%d/%d] DonateRank:[%s]~n~", coordsstring, ptime,jtext,exp,expamount,drank);
    format(coordsstring, sizeof(coordsstring), "%s~n~%sDrugs:[%d] Materials:[%d] Organisation:[%s] Rank:[%s]~n~", coordsstring, drugs,mats,ftext,rtext);
    TextDrawSetString(Statistika, coordsstring);
    TextDrawShowForPlayer(playerid, Statistika);

        //SendClientMessage(playerid, COLOR_WHITE,coordsstring);
        if (PlayerInfo[playerid][pAdmin] >= 1)
        {
            format(coordsstring, sizeof(coordsstring), "~n~%sHouse key [%d] Business key [%d] Veh1 [%d] Veh2 [%d] Veh3 [%d] local[%d]", housekey,bizkey,carkey,carkey2,carkey3,local);
            SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
        }
        SendClientMessage(playerid, COLOR_RED,"------------------------------------------------------------------------------------------------");
    }
}
Reply
#4

Thank you AGAIN Hic killer ALOT
Reply
#5

And as you see in the screen shot you posted, there is a blank and a star where the [ & ] should be..the best way is to use (%s) instead of your [%s] for all the brackets, and from what i remember the parentheses look like brackets ig. Hope this helped a little.
Reply
#6

Quote:
Originally Posted by Killaz/s0nic
And as you see in the screen shot you posted, there is a blank and a star where the [ & ] should be..the best way is to use (%s) instead of your [%s] for all the brackets, and from what i remember the parentheses look like brackets ig. Hope this helped a little.
Lol i know that xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)