[Pomoc] Stats


Započeo Dzoni Hood, Februar 23, 2014, 21:55:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Nebitna
Detaljan opis problema: napravio sam cmd /stats sa selectable td i sad kad to ukucam izbaci mi sve sem podataka dole
Dio skripte:
YCMD:stats(playerid, params[],help)
{
	#pragma unused help
	#pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""CRVENA"GRESKA | "SIVA"Moras se ulogovati da bi koristio ovu komandu!");
    if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, -1, ""CRVENA"GRESKA | "SIVA"Ne mozete gledati stats dok ste u vozilu!");
    new string[256], iskustvo; iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
    new pol[7];
	if(PlayerInfo[playerid][pSex] == 1) pol = "Musko";
	else if(PlayerInfo[playerid][pSex] == 2) pol = "Zensko";
    PlayerTextDrawShow(playerid, STATS[0][playerid]); PlayerTextDrawShow(playerid, STATS[1][playerid]);
    PlayerTextDrawShow(playerid, STATS[2][playerid]); PlayerTextDrawShow(playerid, STATS[3][playerid]);
    PlayerTextDrawShow(playerid, STATS[4][playerid]); PlayerTextDrawShow(playerid, STATS[5][playerid]);
    PlayerTextDrawShow(playerid, STATS[6][playerid]);
   	format(string, sizeof(string),"Ime i prezime: ~w~%s",GetName(playerid)),PlayerTextDrawSetString(playerid,STATS[7][playerid], string);
 	format(string, sizeof(string),"SPol: ~w~%s",pol),PlayerTextDrawSetString(playerid,STATS[8][playerid], string);
	format(string, sizeof(string),"Godine: ~w~%d",PlayerInfo[playerid][pGodine]),PlayerTextDrawSetString(playerid,STATS[9][playerid], string);
 	format(string, sizeof(string),"Level: ~w~%d",PlayerInfo[playerid][pLevel]),PlayerTextDrawSetString(playerid,STATS[10][playerid], string);
	format(string, sizeof(string),"Respekti: ~w~%d/%d",PlayerInfo[playerid][pExp], iskustvo),PlayerTextDrawSetString(playerid,STATS[11][playerid], string);
	format(string, sizeof(string),"Sati igre: ~w~%d",PlayerInfo[playerid][pSatiIgre]),PlayerTextDrawSetString(playerid,STATS[12][playerid], string);
	format(string, sizeof(string),"upozorenja: ~w~%d/5",PlayerInfo[playerid][pWarn]),PlayerTextDrawSetString(playerid,STATS[13][playerid], string);
 	format(string, sizeof(string),"Novac: ~w~%d$",PlayerInfo[playerid][pNovacDzep]),PlayerTextDrawSetString(playerid,STATS[14][playerid], string);
	format(string, sizeof(string),"Banka: ~w~%d$",PlayerInfo[playerid][pNovacBanka]),PlayerTextDrawSetString(playerid,STATS[15][playerid], string);
	SelectTextDraw(playerid, -1);
	SelektTimer[playerid] = SetTimerEx("SelektTime",1000, true, "d", playerid);
	return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): http://img827.imageshack.us/img827/9641/j7yk.png eto tu se vidi da mi ne izbaci textove dole npr ime i prezime itd
Respect: Peter Memorex and C++

A da te podatke staviš pod "clicked" u "public onplayerclicktextdraw" ?

Citat: DevoXx poslato Februar 23, 2014, 22:12:09 POSLE PODNE
A da te podatke staviš pod "clicked" u "public onplayerclicktextdraw" ?
ne moze
Respect: Peter Memorex and C++