[POMOC]Stats

Započeo Vuzimir
8. Nov. 2012. Zaključano
395
pregleda
2
postova
Vuzimir
5
Kingpin
8. Nov. 2012.
Skripta koju koristim: Moja
Detaljan opis problema: E ovko, radio sam po ovom tut: http://balkan-samp.com/forum/index.php?topic=41876.0 i sve sam napravio kako pise u tutu i kada upisem /stats  oni mi samo pokaze okvir od statsa sto sam radio...
Dio skripte: evo komanda STATS:
CMD:stats(playerid, params[])
{
    if(GetPlayerState(playerid) != 2)
    {
    if(Pokrenuti == 0)
    {
Stats(playerid,playerid);
Pokrenuti = 1;
}else{SCM(playerid, -1, " Nemozete gledati statse tijekom vožnje !");}
            }
return 1;
}


Evo Stock:
stock Stats(playerid, player)
{

        new string,text;
        //posao
        if(GetPVarInt(playerid, "Posao") == 1) { text = "Detektiv"; }
        else if(GetPVarInt(playerid, "Posao") == 2) { text = "Advokat"; }
        else if(GetPVarInt(playerid, "Posao") == 3) { text = "Prostitutka"; }
        else if(GetPVarInt(playerid, "Posao") == 4) { text = "Diler Droge"; }
        else if(GetPVarInt(playerid, "Posao") == 5) { text = "Kradljivac Auta"; }
        else if(GetPVarInt(playerid, "Posao") == 7) { text = "Automehanicar"; }
        else if(GetPVarInt(playerid, "Posao") == 8) { text = "Bodyguard"; }
        else if(GetPVarInt(playerid, "Posao") == 9) { text = "Diler Oruzja"; }
        else if(GetPVarInt(playerid, "Posao") == 10) { text = "Farmer"; }
        else if(GetPVarInt(playerid, "Posao") == 12) { text = "Bokser"; }
        else if(GetPVarInt(playerid, "Posao") == 14) { text = "Vozac Autobusa"; }
        else if(GetPVarInt(playerid, "Posao") == 15) { text = "Raznosac Novina"; }
        else if(GetPVarInt(playerid, "Posao") == 16) { text = "Kamiondzija"; }
        else if(GetPVarInt(playerid, "Posao") == 17) { text = "Raznosac Pice"; }
        else if(GetPVarInt(playerid, "Posao") == 18) { text = "Uzgajivac Droge"; }
        else if(GetPVarInt(playerid, "Posao") == 19) { text = "Uzgajivac Droge"; }
        else if(GetPVarInt(playerid, "Posao") == 20) { text = "Svercer Droge"; }
        else if(GetPVarInt(playerid, "Posao") == 21) { text = "Cistac Ulica"; }
        else if(GetPVarInt(playerid, "Posao") == 22) { text = "Svercer Matsa"; }
        else if(GetPVarInt(playerid, "Posao") == 13) { text = "Proizvodac oruzija"; }

        else { text = "Nezaposlen"; } // ako je id posla 0 odnosno ako je igrac nezaposlen
        //
format(string,sizeof(string),"Ime i prezime : %s~n~~n~Novac: %d$~n~~n~Posao: %s",GetName(playerid),GetPlayerMoney(playerid),text);
TextDrawSetString(StatsTDLevo, string); //
    ShowStatsDusan(playerid, player);//ovo ću objasniti u idućem koraku (korak 4 )
return 1;
}


I evo textDraw:
StatsTDLevo = TextDrawCreate(148.000000, 142.000000, "Racun");
    TextDrawBackgroundColor(StatsTDLevo, 255);
    TextDrawFont(StatsTDLevo, 1);
    TextDrawLetterSize(StatsTDLevo, 0.500000, 1.000000);
    TextDrawColor(StatsTDLevo, 12582911);
    TextDrawSetOutline(StatsTDLevo, 0);
    TextDrawSetProportional(StatsTDLevo, 1);
    TextDrawSetShadow(StatsTDLevo, 1);

Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Vuzimir
5
Kingpin
8. Nov. 2012.
**BUMP**

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha