problem: imam stats u textdraw ali sad hocu da prebacim u dijalog i neide nikako nerazumijem onaj coordsstring evo dacu vam ja svoj stats mozel meno da mi prebaci u sendcilentmessage a ja cu nekako u dijalog pls...?
dio skripte: evo vam stats:
/*new married;
strmid(married, PlayerInfo, 0, strlen(PlayerInfo), 255);*/
new age = PlayerInfo;
new ptime = PlayerInfo;
//new lotto = PlayerInfo;
//new deaths = PlayerInfo;
//new fishes = PlayerInfo;
//new crimes = PlayerInfo;
//new warrests = PlayerInfo;
new drugs = PlayerInfo;
new mats = PlayerInfo;
//new wanted = WantedLevel;
new level = PlayerInfo;
new exp = PlayerInfo;
//new kills = PlayerInfo;
new pnumber = PlayerInfo;
new kreditbr = PlayerInfo;
//new account = PlayerInfo;
new nxtlevel = PlayerInfo+1;
new expamount = nxtlevel*levelexp;
//new costlevel = nxtlevel*levelcost;//10k for testing purposes
new housekey = PlayerInfo;
new bizkey = PlayerInfo;
new carkey = PlayerInfo;
new carkey2 = PlayerInfo;
new carkey3 = PlayerInfo;
new intir = PlayerInfo;
new virworld = PlayerInfo;
new local = PlayerInfo;
new warns = PlayerInfo;
//new Float:shealth = PlayerInfo;
new Float:health;
new name;
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid,health);
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new coordsstring;
SendClientMessage(playerid, COLOR_GRAD6,"Za Admine:");
format(coordsstring, sizeof(coordsstring), "- House key [%d] Business key [%d] Veh1 [%d] Veh2 [%d] Veh3 [%d] HireKey [%d] int:[%d] virworld:[%d] local[%d]", housekey,bizkey,carkey,carkey2,carkey3,HireCar,intir,virworld,local);
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
//STATS
//STATS TEXTDRAWS
format(coordsstring, sizeof(coordsstring),"~y~Ime:~h~~h~ %s",name);
Textdraw0 = TextDrawCreate(150.000000, 341.000000, coordsstring);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
format(coordsstring, sizeof(coordsstring),"~y~Pol:~h~~h~ %s",atext);
Textdraw1 = TextDrawCreate(151.000000, 361.000000, coordsstring);
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
format(coordsstring, sizeof(coordsstring),"~y~Godine:~h~~h~ %d",age);
Textdraw2 = TextDrawCreate(151.000000, 381.000000,coordsstring);
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
format(coordsstring, sizeof(coordsstring),"~y~Level:~h~~h~ %d",level);
Textdraw3 = TextDrawCreate(151.000000, 401.000000,coordsstring);
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
format(coordsstring, sizeof(coordsstring),"~y~Respekt:~h~~h~ %d/%d",exp,expamount);
Textdraw4 = TextDrawCreate(151.000000, 421.000000,coordsstring);
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
format(coordsstring, sizeof(coordsstring),"~y~Warns:~h~~h~ %d/5",warns);
Textdraw5 = TextDrawCreate(310.000000, 341.000000,coordsstring);
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
format(coordsstring, sizeof(coordsstring),"~y~O.Sati:~h~~h~ %d",ptime);
Textdraw6 = TextDrawCreate(310.000000, 361.000000,coordsstring);
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
format(coordsstring, sizeof(coordsstring),"~y~Kredit:~h~~h~ %d",kreditbr);
Textdraw7 = TextDrawCreate(310.000000, 381.000000,coordsstring);
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
format(coordsstring, sizeof(coordsstring),"~y~Donator:~h~~h~ %s",drank);
Textdraw8 = TextDrawCreate(310.000000, 401.000000,coordsstring);
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
format(coordsstring, sizeof(coordsstring),"~y~Broj:~h~~h~ %d",pnumber);
Textdraw9 = TextDrawCreate(310.000000, 421.000000,coordsstring);
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 1);
TextDrawLetterSize(Textdraw9, 0.500000, 1.000000);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);
format(coordsstring, sizeof(coordsstring),"~y~Posao:~h~~h~ %s",jtext);
Textdraw10 = TextDrawCreate(470.000000, 341.000000,coordsstring);
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 1);
TextDrawLetterSize(Textdraw10, 0.500000, 1.000000);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);
format(coordsstring, sizeof(coordsstring),"~y~Org:~h~~h~ %s",ftext);
Textdraw11 = TextDrawCreate(470.000000, 361.000000,coordsstring);
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 1);
TextDrawLetterSize(Textdraw11, 0.500000, 1.000000);
TextDrawColor(Textdraw11, -1);
TextDrawSetOutline(Textdraw11, 0);
TextDrawSetProportional(Textdraw11, 1);
TextDrawSetShadow(Textdraw11, 1);
format(coordsstring, sizeof(coordsstring),"~y~Rank:~h~~h~ %s",rtext);
Textdraw12 = TextDrawCreate(470.000000, 381.000000,coordsstring);
TextDrawBackgroundColor(Textdraw12, 255);
TextDrawFont(Textdraw12, 1);
TextDrawLetterSize(Textdraw12, 0.500000, 1.000000);
TextDrawColor(Textdraw12, -1);
TextDrawSetOutline(Textdraw12, 0);
TextDrawSetProportional(Textdraw12, 1);
TextDrawSetShadow(Textdraw12, 1);
format(coordsstring, sizeof(coordsstring),"~y~Droga:~h~~h~ %d",drugs);
Textdraw13 = TextDrawCreate(470.000000, 401.000000,coordsstring);
TextDrawBackgroundColor(Textdraw13, 255);
TextDrawFont(Textdraw13, 1);
TextDrawLetterSize(Textdraw13, 0.500000, 1.000000);
TextDrawColor(Textdraw13, -1);
TextDrawSetOutline(Textdraw13, 0);
TextDrawSetProportional(Textdraw13, 1);
TextDrawSetShadow(Textdraw13, 1);
format(coordsstring, sizeof(coordsstring),"~y~Mats:~h~~h~ %d",mats);
Textdraw14 = TextDrawCreate(470.000000, 421.000000,coordsstring);
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 1);
TextDrawLetterSize(Textdraw14, 0.500000, 1.000000);
TextDrawColor(Textdraw14, -1);
TextDrawSetOutline(Textdraw14, 0);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetShadow(Textdraw14, 1);slike:/
Hvala za pomoc unaprijed!
