13.05.2010, 22:52
i try to make /stats whit textdraw but i have problem here is code
and i get JUST HALF of stats. here is pic
http://slike.hr/slike/samp001_f53d7.png.html
Can anybody help me?
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,"------------------------------------------------------------------------------------------------");
}
}
http://slike.hr/slike/samp001_f53d7.png.html
Can anybody help me?