07.08.2013, 13:23
Hey all, I am wondering if its possible to have a textdraw that shows players score witch will refresh every one minute
I have a variable for score and saving data system..for example here
I want to make a textdraw witch will show the score in top right cone of the screen
here is my try
I have a variable for score and saving data system..for example here
Код:
if(strcmp(cmdtext, "/info", true) == 0) { new strin[400]; GetPlayerIp(playerid, ip2, sizeof(ip2)); GetPlayerPing(playerid); format(strin,sizeof(strin),"{990099}===============Informacie===============\n\n",strin); format(strin,sizeof(strin),"%s{FFFFFF}Nick: {990099}%s\n{FFFFFF}ID: {990099}%i\n{FFFFFF}IP Adresa: {990099}%s\n{FFFFFF}Ping: {990099}%d\n{FFFFFF}Verzia SAMP: {990099}0.3x-R1-2\n{FFFFFF}Score: {990099}%d\n{FFFFFF}Peniaze: {990099}$%d\n{FFFFFF}Zomrel: {990099}%d\n{FFFFFF}Zabil: {990099}%d\n",strin,Jmeno(playerid),playerid,GetPlayerIpEx(playerid),GetPlayerPing(playerid),pScore[playerid],GetPlayerMoney(playerid),pDeaths[playerid],pKills[playerid]); ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"INFO",strin,"Zavriet",""); return 1; }
Код:
new pScore[MAX_PLAYERS_EX];
here is my try
Код:
/////////////////////////////////////score score = TextDrawCreate(545.0, 35.0, "Score: %d"pScore[playerid]); TextDrawLetterSize(score , 0.2, 1.0); TextDrawColor(score , 0x800080FF); TextDrawSetShadow(score , 2); TextDrawSetOutline(score , true);
Код:
new Text:score = Text:INVALID_TEXT_DRAW;