[Pomoc] Stats

Započeo -Luk4-
10. Mar. 2012. Zaključano
1,262
pregleda
14
postova
LuxBvs
4
Shot Caller
10. Mar. 2012.
Skripta koju koristim:Edit BU
Detaljan opis problema:Znaci napravim stats u dijalogu i udjem u igru kucam /stats is kaze Server Unknown command
Dio skripte:
 new coordsstring,coordsstringA,coordsstringB,coordsstringC,coordsstringD,coordsstringE;
    format(coordsstringA, sizeof(coordsstringA), "{F3FF02}======Licna======\n{0049FF}- Ime:[%s] \n- Spol:[%s]  \n- Godine:[%d] \n- Broj:[%d]", name,atext,age,pnumber);
format(coordsstringB, sizeof(coordsstringB), "{F3FF02}======Osnovni Podaci======\n{0049FF}- Sati igranja:[%d] \n- Level:[%d] \n- Novac:[$%d]  \n- Banka:[$%d] \n- Respekti:[%d/%d] \n- DonatorRank:[%s]", ptime,level,expamount,drank);
format(coordsstringC, sizeof(coordsstringC), "{F3FF02}======Podaci======\n{0049FF}- Posao:[%s] \n- Droga:[%d] \n- Materiali:[%d] \n- Organizacija:[%s] \n- Rank:[%s]", jtext,drugs,mats,ftext,rtext);
        format(coordsstringD, sizeof(coordsstringD), "{F3FF02}======Kljucevi======\n{0049FF}- Kljucevi kuce:[%d] \n- Kljucevi firme:[%d] \n- Vozilo1:[%d] \n- Vozilo2:[%d] \n- Vozilo3:[%d] \n- HireKey:[%d] \n- Int:[%d] \n- Virworld:[%d] \n- Local:[%d]",housekey,bizkey,carkey,carkey2,carkey3,HireCar,intir,virworld,local);
format(coordsstring, sizeof(coordsstring), "%s\n%s\n%s\n%s\n%s",coordsstringA,coordsstringB,coordsstringC,coordsstringD,coordsstringE);
    ShowPlayerDialog(playerid,842,DIALOG_STYLE_MSGBOX,"{FF0000}|Galaxy State Play|{3300FF}|-------|Licna Karta|--------|Stats|----------||----------| Licna Karta|----------|Stats|----------||----------| Licna Karta|----------|Stats|----------|",coordsstring,"OK","Odustani");
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Luis
5
Godfather
10. Mar. 2012.
returnaj komadnu ...
LuxBvs
4
Shot Caller
10. Mar. 2012.
Kako to
Luis
5
Godfather
10. Mar. 2012.
>. wrote on March 10, 2012, 1:27 pm:
Kako to

daj mi cijelu komandu kako si stavio ..
Frank99
4
Enforcer
10. Mar. 2012.
Umesto return 0; stavi return 1; pa pokušaj
LuxBvs
4
Shot Caller
10. Mar. 2012.
Nece opet
Frank99
4
Enforcer
10. Mar. 2012.
Pokušaj ovako
	return 1;
}
return 1;
}
Bojan_Babic
4
Enforcer
10. Mar. 2012.
Ja sam rodjeni brat od ovoga luxbvs , ja sam uradio to return 1 dva puta i nece izbaci mi error 1
Luis
5
Godfather
10. Mar. 2012.
Pricate gluposti ostavi kako je bilo taj public ...
ja sam te trazio tvoju komandu stats a ne public showstats ...
Postavi mi tu komandu /stats pa cu ti onda srediti .
LuxBvs
4
Shot Caller
10. Mar. 2012.
if (strcmp(cmd, "/stats", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (gPlayerLogged != 0)
{
    if(pokazanistatsi == 0)
    {
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s gleda u svoj PDA uredjaj", sendername);
    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    TextDrawShowForPlayer(playerid,Text:Textdraw0);
    TextDrawShowForPlayer(playerid,Text:Textdraw1);
    TextDrawShowForPlayer(playerid,Text:Textdraw2);
    TextDrawShowForPlayer(playerid,Text:Textdraw3);
    TextDrawShowForPlayer(playerid,Text:Textdraw4);
    TextDrawShowForPlayer(playerid,Text:Textdraw5);
    TextDrawShowForPlayer(playerid,Text:Textdraw6);
    TextDrawShowForPlayer(playerid,Text:Textdraw7);
    TextDrawShowForPlayer(playerid,Text:Textdraw8);
    TextDrawShowForPlayer(playerid,Text:Textdraw9);
    TextDrawShowForPlayer(playerid,Text:Textdraw10);
    TextDrawShowForPlayer(playerid,Text:Textdraw11);
    TextDrawShowForPlayer(playerid,Text:Textdraw12);
    TextDrawShowForPlayer(playerid,Text:Textdraw13);
    TextDrawShowForPlayer(playerid,Text:Textdraw14);
    TextDrawShowForPlayer(playerid,Text:Textdraw15);
    pokazanistatsi = 1;
    }
    else if(pokazanistatsi == 1)
    {
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw8);
TextDrawHideForPlayer(playerid, Textdraw9);
TextDrawHideForPlayer(playerid, Textdraw10);
TextDrawHideForPlayer(playerid, Textdraw11);
TextDrawHideForPlayer(playerid, Textdraw12);
TextDrawHideForPlayer(playerid, Textdraw13);
TextDrawHideForPlayer(playerid, Textdraw14);
TextDrawHideForPlayer(playerid, Textdraw15);
TextDrawDestroy(Textdraw0);
TextDrawDestroy(Textdraw1);
TextDrawDestroy(Textdraw2);
TextDrawDestroy(Textdraw3);
TextDrawDestroy(Textdraw4);
TextDrawDestroy(Textdraw5);
TextDrawDestroy(Textdraw6);
TextDrawDestroy(Textdraw7);
TextDrawDestroy(Textdraw8);
TextDrawDestroy(Textdraw9);
TextDrawDestroy(Textdraw10);
TextDrawDestroy(Textdraw11);
TextDrawDestroy(Textdraw12);
TextDrawDestroy(Textdraw13);
TextDrawDestroy(Textdraw14);
TextDrawDestroy(Textdraw15);
pokazanistatsi = 0;
    }
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Niste prijavljeni!");
}
}
return 1;
}


JAO SAD KONTAM BIO JE STATS PRE U TEXTDRAW KAKO SAD DA STAVIM OVO STO SAM URADIO
Blaeks_Biofor
5
Forum Don
10. Mar. 2012.
ShowPlayerDialog
Bojan_Babic
4
Enforcer
10. Mar. 2012.
Gde to da stavim
Domagoj1234
4
Enforcer
10. Mar. 2012.
if (strcmp(cmd, "/stats", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (gPlayerLogged != 0)
{
    if(pokazanistatsi == 0)
    {
ShowPlayerDialog(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s gleda u svoj PDA uredjaj", sendername);
    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    TextDrawShowForPlayer(playerid,Text:Textdraw0);
    TextDrawShowForPlayer(playerid,Text:Textdraw1);
    TextDrawShowForPlayer(playerid,Text:Textdraw2);
    TextDrawShowForPlayer(playerid,Text:Textdraw3);
    TextDrawShowForPlayer(playerid,Text:Textdraw4);
    TextDrawShowForPlayer(playerid,Text:Textdraw5);
    TextDrawShowForPlayer(playerid,Text:Textdraw6);
    TextDrawShowForPlayer(playerid,Text:Textdraw7);
    TextDrawShowForPlayer(playerid,Text:Textdraw8);
    TextDrawShowForPlayer(playerid,Text:Textdraw9);
    TextDrawShowForPlayer(playerid,Text:Textdraw10);
    TextDrawShowForPlayer(playerid,Text:Textdraw11);
    TextDrawShowForPlayer(playerid,Text:Textdraw12);
    TextDrawShowForPlayer(playerid,Text:Textdraw13);
    TextDrawShowForPlayer(playerid,Text:Textdraw14);
    TextDrawShowForPlayer(playerid,Text:Textdraw15);
    pokazanistatsi = 1;
    }
    else if(pokazanistatsi == 1)
    {
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw8);
TextDrawHideForPlayer(playerid, Textdraw9);
TextDrawHideForPlayer(playerid, Textdraw10);
TextDrawHideForPlayer(playerid, Textdraw11);
TextDrawHideForPlayer(playerid, Textdraw12);
TextDrawHideForPlayer(playerid, Textdraw13);
TextDrawHideForPlayer(playerid, Textdraw14);
TextDrawHideForPlayer(playerid, Textdraw15);
TextDrawDestroy(Textdraw0);
TextDrawDestroy(Textdraw1);
TextDrawDestroy(Textdraw2);
TextDrawDestroy(Textdraw3);
TextDrawDestroy(Textdraw4);
TextDrawDestroy(Textdraw5);
TextDrawDestroy(Textdraw6);
TextDrawDestroy(Textdraw7);
TextDrawDestroy(Textdraw8);
TextDrawDestroy(Textdraw9);
TextDrawDestroy(Textdraw10);
TextDrawDestroy(Textdraw11);
TextDrawDestroy(Textdraw12);
TextDrawDestroy(Textdraw13);
TextDrawDestroy(Textdraw14);
TextDrawDestroy(Textdraw15);
pokazanistatsi = 0;
    }
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Niste prijavljeni!");
}
}
return 1;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha