Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Maranzano poslato Novembar 25, 2014, 20:25:07 POSLE PODNE

Naslov: [POMOC]Textdraw Problem
Poruka od: Maranzano poslato Novembar 25, 2014, 20:25:07 POSLE PODNE
Skripta koju koristim:UP
Detaljan opis problema:Pozdrav,Napravio sam textdrawove za stats i kada sam ih ubacio u skriptu one nece da rade odnosno nece da se prikazu u igri..Nezz sto je..
Dio skripte:stock KreirajStats(playerid)
{
if(KreiranStats[playerid] == 0)
{
    UPSTATS[0][playerid] = TextDrawCreate(219.875000, 444.250000, "usebox");
    TextDrawLetterSize(playerid,UPSTATS[0][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,UPSTATS[0][playerid], 219.875000, 0.000000);
    TextDrawAlignment(playerid,UPSTATS[0][playerid], 1);
    TextDrawColor(playerid,UPSTATS[0][playerid], 0);
    TextDrawUseBox(playerid,UPSTATS[0][playerid], true);
    TextDrawBoxColor(playerid,UPSTATS[0][playerid], 102);
    TextDrawSetShadow(playerid,UPSTATS[0][playerid], 0);
    TextDrawSetOutline(playerid,UPSTATS[0][playerid], 0);
    TextDrawFont(playerid,UPSTATS[0][playerid], 0);

    UPSTATS[1][playerid] = TextDrawCreate(128.750000, 103.833328, "LD_SPAC:white");
    TextDrawLetterSize(playerid,UPSTATS[1][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,UPSTATS[1][playerid], 370.000000, 1.750000);
    TextDrawAlignment(playerid,UPSTATS[1][playerid], 1);
    TextDrawColor(playerid,UPSTATS[1][playerid], -5963521);
    TextDrawSetShadow(playerid,UPSTATS[1][playerid], 0);
    TextDrawSetOutline(playerid,UPSTATS[1][playerid], 0);
    TextDrawFont(playerid,UPSTATS[1][playerid], 4);

    UPSTATS[2][playerid] = TextDrawCreate(129.375000, 368.666687, "LD_SPAC:white");
    TextDrawLetterSize(playerid,UPSTATS[2][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,UPSTATS[2][playerid], 368.750000, 1.166625);
    TextDrawAlignment(playerid,UPSTATS[2][playerid], 1);
    TextDrawColor(playerid,UPSTATS[2][playerid], -5963521);
    TextDrawSetShadow(playerid,UPSTATS[2][playerid], 0);
    TextDrawSetOutline(playerid,UPSTATS[2][playerid], 0);
    TextDrawFont(playerid,UPSTATS[2][playerid], 4);

    UPSTATS[3][playerid] = TextDrawCreate(129.375000, 130.666656, "LD_SPAC:white");
    TextDrawLetterSize(playerid,UPSTATS[3][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,UPSTATS[3][playerid], 368.125000, 0.583343);
    TextDrawAlignment(playerid,UPSTATS[3][playerid], 1);
    TextDrawColor(playerid,UPSTATS[3][playerid], -5963521);
    TextDrawSetShadow(playerid,UPSTATS[3][playerid], 0);
    TextDrawSetOutline(playerid,UPSTATS[3][playerid], 0);
    TextDrawFont(playerid,UPSTATS[3][playerid], 4);

    UPSTATS[4][playerid] = TextDrawCreate(310.000000, 131.833343, "LD_SPAC:white");
    TextDrawLetterSize(playerid,UPSTATS[4][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,UPSTATS[4][playerid], 0.625000, 236.833343);
    TextDrawAlignment(playerid,UPSTATS[4][playerid], 1);
    TextDrawColor(playerid,UPSTATS[4][playerid], -5963521);
    TextDrawSetShadow(playerid,UPSTATS[4][playerid], 0);
    TextDrawSetOutline(playerid,UPSTATS[4][playerid], 0);
    TextDrawFont(playerid,UPSTATS[4][playerid], 4);

    UPSTATS[5][playerid] = TextDrawCreate(130.000000, 352.916687, "LD_SPAC:white");
    TextDrawLetterSize(playerid,playerid,UPSTATS[5][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,playerid,UPSTATS[5][playerid], 368.125000, 0.583311);
TextDrawAlignment(playerid,playerid,UPSTATS[5][playerid], 1);
TextDrawColor(playerid,playerid,UPSTATS[5][playerid], -5963521);
TextDrawSetShadow(playerid,playerid,UPSTATS[5][playerid], 0);
TextDrawSetOutline(playerid,playerid,UPSTATS[5][playerid], 0);
TextDrawFont(playerid,playerid,UPSTATS[5][playerid], 4);

UPSTATS[6][playerid] = TextDrawCreate(310.625000, 251.416580, "LD_SPAC:white");
TextDrawLetterSize(playerid,UPSTATS[6][playerid], 0.000000, 0.000000);
TextDrawTextSize(playerid,UPSTATS[6][playerid], 186.875000, -0.583328);
TextDrawAlignment(playerid,UPSTATS[6][playerid], 1);
TextDrawColor(playerid,UPSTATS[6][playerid], -5963521);
TextDrawSetShadow(playerid,UPSTATS[6][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[6][playerid], 0);
TextDrawFont(playerid,UPSTATS[6][playerid], 4);

UPSTATS[7][playerid] = TextDrawCreate(270.625000, 113.750007, "Mirsoni_Alibasic");
TextDrawLetterSize(playerid,UPSTATS[7][playerid], 0.234374, 1.074998);
TextDrawAlignment(playerid,UPSTATS[7][playerid], 1);
TextDrawColor(playerid,UPSTATS[7][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[7][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[7][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[7][playerid], 51);
TextDrawFont(playerid,UPSTATS[7][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[7][playerid], 1);

UPSTATS[8][playerid] = TextDrawCreate(193.125000, 158.666671, "Level:50");
TextDrawLetterSize(playerid,UPSTATS[8][playerid], 0.228123, 1.045832);
TextDrawAlignment(playerid,UPSTATS[8][playerid], 1);
TextDrawColor(playerid,UPSTATS[8][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[8][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[8][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[8][playerid], 51);
TextDrawFont(playerid,UPSTATS[8][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[8][playerid], 1);

UPSTATS[9][playerid] = TextDrawCreate(179.375000, 177.333358, "Respekti: 50/500");
TextDrawLetterSize(playerid,UPSTATS[9][playerid], 0.193748, 1.016666);
TextDrawAlignment(playerid,UPSTATS[9][playerid], 1);
TextDrawColor(playerid,UPSTATS[9][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[9][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[9][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[9][playerid], 51);
TextDrawFont(playerid,UPSTATS[9][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[9][playerid], 1);

UPSTATS[10][playerid] = TextDrawCreate(188.125000, 196.583358, "Sati igre: 1000");
TextDrawLetterSize(playerid,UPSTATS[10][playerid], 0.190623, 1.016666);
TextDrawAlignment(playerid,UPSTATS[10][playerid], 1);
TextDrawColor(playerid,UPSTATS[10][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[10][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[10][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[10][playerid], 51);
TextDrawFont(playerid,UPSTATS[10][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[10][playerid], 1);

UPSTATS[11][playerid] = TextDrawCreate(195.000000, 218.166671, "Rank org: 5");
TextDrawLetterSize(playerid,UPSTATS[11][playerid], 0.193748, 1.045832);
TextDrawAlignment(playerid,UPSTATS[11][playerid], 1);
TextDrawColor(playerid,UPSTATS[11][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[11][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[11][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[11][playerid], 51);
TextDrawFont(playerid,UPSTATS[11][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[11][playerid], 1);

UPSTATS[12][playerid] = TextDrawCreate(188.750000, 238.583358, "Org Kazna: 15");
TextDrawLetterSize(playerid,UPSTATS[12][playerid], 0.199999, 1.016666);
TextDrawAlignment(playerid,UPSTATS[12][playerid], 1);
TextDrawColor(playerid,UPSTATS[12][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[12][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[12][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[12][playerid], 51);
TextDrawFont(playerid,UPSTATS[12][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[12][playerid], 1);

UPSTATS[13][playerid] = TextDrawCreate(195.000000, 264.833374, "Warn: 4/5");
TextDrawLetterSize(playerid,UPSTATS[13][playerid], 0.218749, 1.074998);
TextDrawAlignment(playerid,UPSTATS[13][playerid], 1);
TextDrawColor(playerid,UPSTATS[13][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[13][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[13][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[13][playerid], 51);
TextDrawFont(playerid,UPSTATS[13][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[13][playerid], 1);

UPSTATS[14][playerid] = TextDrawCreate(185.625000, 288.166625, "Posao ugovor: 5");
TextDrawLetterSize(playerid,UPSTATS[14][playerid], 0.184374, 1.074998);
TextDrawAlignment(playerid,UPSTATS[14][playerid], 1);
TextDrawColor(playerid,UPSTATS[14][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[14][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[14][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[14][playerid], 51);
TextDrawFont(playerid,UPSTATS[14][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[14][playerid], 1);

UPSTATS[15][playerid] = TextDrawCreate(165.625000, 309.749969, "Novac: 50000000$");
TextDrawLetterSize(playerid,UPSTATS[15][playerid], 0.268748, 1.104166);
TextDrawAlignment(playerid,UPSTATS[15][playerid], 1);
TextDrawColor(playerid,UPSTATS[15][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[15][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[15][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[15][playerid], 51);
TextDrawFont(playerid,UPSTATS[15][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[15][playerid], 1);

UPSTATS[16][playerid] = TextDrawCreate(170.625000, 323.750061, "Banka: 500000000$");
TextDrawLetterSize(playerid,UPSTATS[16][playerid], 0.246874, 1.162498);
TextDrawAlignment(playerid,UPSTATS[16][playerid], 1);
TextDrawColor(playerid,UPSTATS[16][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[16][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[16][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[16][playerid], 51);
TextDrawFont(playerid,UPSTATS[16][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[16][playerid], 1);

UPSTATS[17][playerid] = TextDrawCreate(191.250000, 356.999969, "nezaposlen");
TextDrawLetterSize(playerid,UPSTATS[17][playerid], 0.215624, 1.016666);
TextDrawAlignment(playerid,UPSTATS[17][playerid], 1);
TextDrawColor(playerid,UPSTATS[17][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[17][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[17][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[17][playerid], 51);
TextDrawFont(playerid,UPSTATS[17][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[17][playerid], 1);

UPSTATS[18][playerid] = TextDrawCreate(322.500000, 137.083312, "Kuca: Da");
TextDrawLetterSize(playerid,UPSTATS[18][playerid], 0.228125, 1.016666);
TextDrawAlignment(playerid,UPSTATS[18][playerid], 1);
TextDrawColor(playerid,UPSTATS[18][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[18][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[18][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[18][playerid], 51);
TextDrawFont(playerid,UPSTATS[18][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[18][playerid], 1);

UPSTATS[19][playerid] = TextDrawCreate(322.500000, 149.916564, "Plovilo: Da");
TextDrawLetterSize(playerid,UPSTATS[19][playerid], 0.217499, 1.039999);
TextDrawAlignment(playerid,UPSTATS[19][playerid], 1);
TextDrawColor(playerid,UPSTATS[19][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[19][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[19][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[19][playerid], 51);
TextDrawFont(playerid,UPSTATS[19][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[19][playerid], 1);

UPSTATS[20][playerid] = TextDrawCreate(322.500000, 162.749969, "Motor: Da");
TextDrawLetterSize(playerid,UPSTATS[20][playerid], 0.236248, 1.045830);
TextDrawAlignment(playerid,UPSTATS[20][playerid], 1);
TextDrawColor(playerid,UPSTATS[20][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[20][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[20][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[20][playerid], 51);
TextDrawFont(playerid,UPSTATS[20][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[20][playerid], 1);

UPSTATS[21][playerid] = TextDrawCreate(323.125000, 175.583328, "Letjelica: Da");
TextDrawLetterSize(playerid,UPSTATS[21][playerid], 0.217499, 1.028331);
TextDrawAlignment(playerid,UPSTATS[21][playerid], 1);
TextDrawColor(playerid,UPSTATS[21][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[21][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[21][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[21][playerid], 51);
TextDrawFont(playerid,UPSTATS[21][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[21][playerid], 1);

UPSTATS[22][playerid] = TextDrawCreate(323.750000, 187.833297, "Stan: Da");
TextDrawLetterSize(playerid,UPSTATS[22][playerid], 0.244374, 1.028331);
TextDrawAlignment(playerid,UPSTATS[22][playerid], 1);
TextDrawColor(playerid,UPSTATS[22][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[22][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[22][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[22][playerid], 51);
TextDrawFont(playerid,UPSTATS[22][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[22][playerid], 1);

UPSTATS[23][playerid] = TextDrawCreate(323.125000, 198.333312, "Vikendica: Da");
TextDrawLetterSize(playerid,UPSTATS[23][playerid], 0.224373, 1.110000);
TextDrawAlignment(playerid,UPSTATS[23][playerid], 1);
TextDrawColor(playerid,UPSTATS[23][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[23][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[23][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[23][playerid], 51);
TextDrawFont(playerid,UPSTATS[23][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[23][playerid], 1);

UPSTATS[24][playerid] = TextDrawCreate(323.750000, 210.000045, "Biciklo: Da");
TextDrawLetterSize(playerid,UPSTATS[24][playerid], 0.251873, 1.174165);
TextDrawAlignment(playerid,UPSTATS[24][playerid], 1);
TextDrawColor(playerid,UPSTATS[24][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[24][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[24][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[24][playerid], 51);
TextDrawFont(playerid,UPSTATS[24][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[24][playerid], 1);

UPSTATS[25][playerid] = TextDrawCreate(324.375000, 222.833312, "Firma: Da");
TextDrawLetterSize(playerid,UPSTATS[25][playerid], 0.256873, 1.086665);
TextDrawAlignment(playerid,UPSTATS[25][playerid], 1);
TextDrawColor(playerid,UPSTATS[25][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[25][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[25][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[25][playerid], 51);
TextDrawFont(playerid,UPSTATS[25][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[25][playerid], 1);

UPSTATS[26][playerid] = TextDrawCreate(323.750000, 234.499969, "Mobilni: Da");
TextDrawLetterSize(playerid,UPSTATS[26][playerid], 0.254999, 1.057497);
TextDrawAlignment(playerid,UPSTATS[26][playerid], 1);
TextDrawColor(playerid,UPSTATS[26][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[26][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[26][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[26][playerid], 51);
TextDrawFont(playerid,UPSTATS[26][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[26][playerid], 1);

UPSTATS[27][playerid] = TextDrawCreate(318.750000, 254.916656, "Droga: 5000g");
TextDrawLetterSize(playerid,UPSTATS[27][playerid], 0.215625, 1.127498);
TextDrawAlignment(playerid,UPSTATS[27][playerid], 1);
TextDrawColor(playerid,UPSTATS[27][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[27][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[27][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[27][playerid], 51);
TextDrawFont(playerid,UPSTATS[27][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[27][playerid], 1);

UPSTATS[28][playerid] = TextDrawCreate(319.375000, 266.583435, "Mats: 150000");
TextDrawLetterSize(playerid,UPSTATS[28][playerid], 0.226248, 1.063331);
TextDrawAlignment(playerid,UPSTATS[28][playerid], 1);
TextDrawColor(playerid,UPSTATS[28][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[28][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[28][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[28][playerid], 51);
TextDrawFont(playerid,UPSTATS[28][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[28][playerid], 1);

UPSTATS[29][playerid] = TextDrawCreate(319.375000, 277.083435, "Godine: 50");
TextDrawLetterSize(playerid,UPSTATS[29][playerid], 0.239998, 1.156666);
TextDrawAlignment(playerid,UPSTATS[29][playerid], 1);
TextDrawColor(playerid,UPSTATS[29][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[29][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[29][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[29][playerid], 51);
TextDrawFont(playerid,UPSTATS[29][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[29][playerid], 1);

UPSTATS[30][playerid] = TextDrawCreate(319.375000, 288.750030, "Pol: Musko");
TextDrawLetterSize(playerid,UPSTATS[30][playerid], 0.231874, 1.197499);
TextDrawAlignment(playerid,UPSTATS[30][playerid], 1);
TextDrawColor(playerid,UPSTATS[30][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[30][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[30][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[30][playerid], 51);
TextDrawFont(playerid,UPSTATS[30][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[30][playerid], 1);

UPSTATS[31][playerid] = TextDrawCreate(319.375000, 299.833374, "Wanted: 5");
TextDrawLetterSize(playerid,UPSTATS[31][playerid], 0.231249, 1.214998);
TextDrawAlignment(playerid,UPSTATS[31][playerid], 1);
TextDrawColor(playerid,UPSTATS[31][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[31][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[31][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[31][playerid], 51);
TextDrawFont(playerid,UPSTATS[31][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[31][playerid], 1);

UPSTATS[32][playerid] = TextDrawCreate(320.000000, 311.499969, "Kredit: Da");
TextDrawLetterSize(playerid,playerid,UPSTATS[32][playerid], 0.248124, 1.185832);
TextDrawAlignment(playerid,playerid,UPSTATS[32][playerid], 1);
TextDrawColor(playerid,playerid,UPSTATS[32][playerid], -1);
TextDrawSetShadow(playerid,playerid,UPSTATS[32][playerid], 0);
TextDrawSetOutline(playerid,playerid,UPSTATS[32][playerid], 1);
TextDrawBackgroundColor(playerid,playerid,UPSTATS[32][playerid], 51);
TextDrawFont(playerid,playerid,UPSTATS[32][playerid], 2);
TextDrawSetProportional(playerid,playerid,UPSTATS[32][playerid], 1);

UPSTATS[33][playerid] = TextDrawCreate(320.000000, 323.750091, "Mob kredit: 50");
TextDrawLetterSize(playerid,UPSTATS[33][playerid], 0.211873, 1.168333);
TextDrawAlignment(playerid,UPSTATS[33][playerid], 1);
TextDrawColor(playerid,UPSTATS[33][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[33][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[33][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[33][playerid], 51);
TextDrawFont(playerid,UPSTATS[33][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[33][playerid], 1);

UPSTATS[34][playerid] = TextDrawCreate(319.375000, 334.833465, "Uhapsen puta: 50");
TextDrawLetterSize(playerid,UPSTATS[34][playerid], 0.216874, 1.179998);
TextDrawAlignment(playerid,UPSTATS[34][playerid], 1);
TextDrawColor(playerid,UPSTATS[34][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[34][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[34][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[34][playerid], 51);
TextDrawFont(playerid,UPSTATS[34][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[34][playerid], 1);

UPSTATS[35][playerid] = TextDrawCreate(346.875000, 356.416687, "Los Santos Police Department");
TextDrawLetterSize(playerid,UPSTATS[35][playerid], 0.172499, 0.999166);
TextDrawAlignment(playerid,UPSTATS[35][playerid], 1);
TextDrawColor(playerid,UPSTATS[35][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[35][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[35][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[35][playerid], 51);
TextDrawFont(playerid,UPSTATS[35][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[35][playerid], 1);

UPSTATS[36][playerid] = TextDrawCreate(404.375000, 137.083343, "Auto: Da");
TextDrawLetterSize(playerid,UPSTATS[36][playerid], 0.262500, 1.039999);
TextDrawAlignment(playerid,UPSTATS[36][playerid], 1);
TextDrawColor(playerid,UPSTATS[36][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[36][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[36][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[36][playerid], 51);
TextDrawFont(playerid,UPSTATS[36][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[36][playerid], 1);

new string[256], iskustvo; iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
new auto1[3], motor[3], bicikla[3], letelica[3], plovilo[3], kuca[3], stan[3], vikendica[3], firma[3], mobilni[3], pol[7], kredit[3];
        if(PlayerInfo[playerid][pPreostaloZaOtplatu] == 0) kredit = "Ne";
        else if(PlayerInfo[playerid][pPreostaloZaOtplatu] > 0) kredit = "Da";
if(PlayerInfo[playerid][pSex] == 1) pol = "Musko";
else if(PlayerInfo[playerid][pSex] == 2) pol = "Zensko";
        if(PlayerInfo[playerid][pMobilni] == 0) mobilni = "Ne";
else if(PlayerInfo[playerid][pMobilni] != 0) mobilni = "Da";
if(PlayerInfo[playerid][pPosedovanjeAuta] == -1) auto1 = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeAuta] != -1) auto1 = "Da";
if(PlayerInfo[playerid][pPosedovanjeMotora] == -1) motor = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeMotora] != -1) motor = "Da";
if(PlayerInfo[playerid][pPosedovanjeBicikla] == -1) bicikla = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeBicikla] != -1) bicikla = "Da";
if(PlayerInfo[playerid][pPosedovanjeAviona] == -1) letelica = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeAviona] != -1) letelica = "Da";
if(PlayerInfo[playerid][pPosedovanjePlovila] == -1) plovilo = "Ne";
else if(PlayerInfo[playerid][pPosedovanjePlovila] != -1) plovilo = "Da";
if(PlayerInfo[playerid][pPosedovanjeKuce] == -1) kuca = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeKuce] != -1) kuca = "Da";
if(PlayerInfo[playerid][pPosedovanjeStana] == -1) stan = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeStana] != -1) stan = "Da";
if(PlayerInfo[playerid][pPosedovanjeVikendice] == -1) vikendica = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeVikendice] != -1) vikendica = "Da";
if(PlayerInfo[playerid][pPosedovanjeFirme] == -1) firma = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeFirme] != -1) firma = "Da";
for(new i = 0; i < 37; i++) PlayerTextDrawShow(playerid, UPSTATS[i][playerid]);
KreiranStats[playerid] = 1; SCM(playerid,-1,"[CA:RP] "CRVENA"Da zatvorite stats kucajte ponovo '/stats'!");
format(string, sizeof(string),"%s",GetName(playerid));
PlayerTextDrawSetString(playerid,UPSTATS[7][playerid], string);
format(string, sizeof(string),"~y~Posao ugovor: ~w~%d",PlayerInfo[playerid][pPosaoUgovor]);
PlayerTextDrawSetString(playerid,UPSTATS[14][playerid], string);
        format(string, sizeof(string),"~y~Novac: ~g~%d$",PlayerInfo[playerid][pNovacDzep]);
PlayerTextDrawSetString(playerid,UPSTATS[15][playerid], string);
format(string, sizeof(string),"~y~Auto: ~w~%s",auto1);
PlayerTextDrawSetString(playerid,playerid,UPSTATS[35][playerid], string);
format(string, sizeof(string),"~y~Motor: ~w~%s",motor);
PlayerTextDrawSetString(playerid,UPSTATS[20][playerid], string);
format(string, sizeof(string),"~y~Respekti: ~w~%d/%d",PlayerInfo[playerid][pExp], iskustvo);
PlayerTextDrawSetString(playerid,UPSTATS[9][playerid], string);
        format(string, sizeof(string),"~y~Level: ~w~%d",PlayerInfo[playerid][pLevel]);
PlayerTextDrawSetString(playerid,UPSTATS[8][playerid], string);
        format(string, sizeof(string),"%s",PosaoIme(PlayerInfo[playerid][pPosao]));
PlayerTextDrawSetString(playerid,UPSTATS[17][playerid], string);
format(string, sizeof(string),"%s",ImeOrganizacije(PlayerInfo[playerid][pClan]));
PlayerTextDrawSetString(playerid,UPSTATS[36][playerid], string);
format(string, sizeof(string),"~y~Plovilo: ~w~%s",plovilo);
PlayerTextDrawSetString(playerid,UPSTATS[19][playerid], string);
format(string, sizeof(string),"~y~Rank org: ~w~%d",PlayerInfo[playerid][pRank]);
PlayerTextDrawSetString(playerid,UPSTATS[11][playerid], string);
format(string, sizeof(string),"~y~Sati igre: ~w~%d",PlayerInfo[playerid][pSatiIgre]);
PlayerTextDrawSetString(playerid,UPSTATS[10][playerid], string);
format(string, sizeof(string),"~y~Org kazna: ~w~%d",PlayerInfo[playerid][pOrgUgovor]);
PlayerTextDrawSetString(playerid,UPSTATS[12][playerid], string);
format(string, sizeof(string),"~y~Warn: ~w~%d/5",PlayerInfo[playerid][pWarn]);
PlayerTextDrawSetString(playerid,UPSTATS[13][playerid], string);
    format(string, sizeof(string),"~y~Banka: ~g~%d$",PlayerInfo[playerid][pNovacBanka]);
PlayerTextDrawSetString(playerid,UPSTATS[16][playerid], string);
format(string, sizeof(string),"~y~Kuca: ~w~%s",kuca);
PlayerTextDrawSetString(playerid,UPSTATS[18][playerid], string);
format(string, sizeof(string),"~y~Biciklo: ~w~%s",bicikla);
PlayerTextDrawSetString(playerid,UPSTATS[24][playerid], string);
        format(string, sizeof(string),"~y~Vikendica: ~w~%s",vikendica);
PlayerTextDrawSetString(playerid,UPSTATS[23][playerid], string);
        format(string, sizeof(string),"~y~Letjelica: ~w~%s",letelica);
PlayerTextDrawSetString(playerid,UPSTATS[24][playerid], string);
format(string, sizeof(string),"~y~Firma: ~w~%s",firma);
PlayerTextDrawSetString(playerid,UPSTATS[25][playerid], string);
format(string, sizeof(string),"~y~Stan: ~w~%s",stan);
PlayerTextDrawSetString(playerid,UPSTATS[22][playerid], string);
format(string, sizeof(string),"~y~Mobilni: ~w~%s",mobilni);
PlayerTextDrawSetString(playerid,UPSTATS[26][playerid], string);
        format(string, sizeof(string),"~y~Droga: ~w~%dg",PlayerInfo[playerid][pDroga]);
PlayerTextDrawSetString(playerid,UPSTATS[27][playerid], string);
format(string, sizeof(string),"~y~Mats: ~w~%d",PlayerInfo[playerid][pMats]);
PlayerTextDrawSetString(playerid,UPSTATS[28][playerid], string);
format(string, sizeof(string),"~y~Godine: ~w~%d",PlayerInfo[playerid][pGodine]);
PlayerTextDrawSetString(playerid,UPSTATS[29][playerid], string);
        format(string, sizeof(string),"~y~Pol: ~w~%s",pol);
PlayerTextDrawSetString(playerid,UPSTATS[30][playerid], string);
format(string, sizeof(string),"~y~Wanted: ~w~%d",GetPlayerWantedLevel(playerid));
PlayerTextDrawSetString(playerid,UPSTATS[31][playerid], string);
format(string, sizeof(string),"~y~Kredit: ~w~%s",kredit);
PlayerTextDrawSetString(playerid,UPSTATS[32][playerid], string);
format(string, sizeof(string),"~y~Mob kredit: ~w~%d",PlayerInfo[playerid][pMobKredit]);
PlayerTextDrawSetString(playerid,UPSTATS[33][playerid], string);
format(string, sizeof(string),"~y~Uhapsen Puta: ~w~%d",PlayerInfo[playerid][pUhapsenPuta]);
PlayerTextDrawSetString(playerid,UPSTATS[34][playerid], string);
}
else if(KreiranStats[playerid] == 1)
{
    for(new i = 0; i < 37; i++)
    {
        PlayerTextDrawShow(playerid, UPSTATS[i][playerid]);
        PlayerTextDrawDestroy(playerid, UPSTATS[i][playerid]);
        KreiranStats[playerid] = 0;
    }
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Naslov: Odg: [POMOC]Textdraw Problem
Poruka od: [CH]Lenon poslato Novembar 25, 2014, 20:41:48 POSLE PODNE
Jesi li stavio KreirajStats(playerid); pod OnPlayerConnect?
Naslov: Odg: [POMOC]Textdraw Problem
Poruka od: Maranzano poslato Novembar 25, 2014, 20:48:42 POSLE PODNE
Nije bilo..Stavio sam ali kad se loginujem pise mi 'Da zatvorite stats kucajte /stats'..I opet kad  kucam nece da izbaci
Naslov: Odg: [POMOC]Textdraw Problem
Poruka od: [CH]Lenon poslato Novembar 26, 2014, 13:03:09 POSLE PODNE
Probaj ovako..

Ubaci stock na ovaj nacin:



stock KreirajStats(playerid)
{
    UPSTATS[0][playerid] = TextDrawCreate(219.875000, 444.250000, "usebox");
    TextDrawLetterSize(playerid,UPSTATS[0][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,UPSTATS[0][playerid], 219.875000, 0.000000);
    TextDrawAlignment(playerid,UPSTATS[0][playerid], 1);
    TextDrawColor(playerid,UPSTATS[0][playerid], 0);
    TextDrawUseBox(playerid,UPSTATS[0][playerid], true);
    TextDrawBoxColor(playerid,UPSTATS[0][playerid], 102);
    TextDrawSetShadow(playerid,UPSTATS[0][playerid], 0);
    TextDrawSetOutline(playerid,UPSTATS[0][playerid], 0);
    TextDrawFont(playerid,UPSTATS[0][playerid], 0);

    UPSTATS[1][playerid] = TextDrawCreate(128.750000, 103.833328, "LD_SPAC:white");
    TextDrawLetterSize(playerid,UPSTATS[1][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,UPSTATS[1][playerid], 370.000000, 1.750000);
    TextDrawAlignment(playerid,UPSTATS[1][playerid], 1);
    TextDrawColor(playerid,UPSTATS[1][playerid], -5963521);
    TextDrawSetShadow(playerid,UPSTATS[1][playerid], 0);
    TextDrawSetOutline(playerid,UPSTATS[1][playerid], 0);
    TextDrawFont(playerid,UPSTATS[1][playerid], 4);

    UPSTATS[2][playerid] = TextDrawCreate(129.375000, 368.666687, "LD_SPAC:white");
    TextDrawLetterSize(playerid,UPSTATS[2][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,UPSTATS[2][playerid], 368.750000, 1.166625);
    TextDrawAlignment(playerid,UPSTATS[2][playerid], 1);
    TextDrawColor(playerid,UPSTATS[2][playerid], -5963521);
    TextDrawSetShadow(playerid,UPSTATS[2][playerid], 0);
    TextDrawSetOutline(playerid,UPSTATS[2][playerid], 0);
    TextDrawFont(playerid,UPSTATS[2][playerid], 4);

    UPSTATS[3][playerid] = TextDrawCreate(129.375000, 130.666656, "LD_SPAC:white");
    TextDrawLetterSize(playerid,UPSTATS[3][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,UPSTATS[3][playerid], 368.125000, 0.583343);
    TextDrawAlignment(playerid,UPSTATS[3][playerid], 1);
    TextDrawColor(playerid,UPSTATS[3][playerid], -5963521);
    TextDrawSetShadow(playerid,UPSTATS[3][playerid], 0);
    TextDrawSetOutline(playerid,UPSTATS[3][playerid], 0);
    TextDrawFont(playerid,UPSTATS[3][playerid], 4);

    UPSTATS[4][playerid] = TextDrawCreate(310.000000, 131.833343, "LD_SPAC:white");
    TextDrawLetterSize(playerid,UPSTATS[4][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,UPSTATS[4][playerid], 0.625000, 236.833343);
    TextDrawAlignment(playerid,UPSTATS[4][playerid], 1);
    TextDrawColor(playerid,UPSTATS[4][playerid], -5963521);
    TextDrawSetShadow(playerid,UPSTATS[4][playerid], 0);
    TextDrawSetOutline(playerid,UPSTATS[4][playerid], 0);
    TextDrawFont(playerid,UPSTATS[4][playerid], 4);

    UPSTATS[5][playerid] = TextDrawCreate(130.000000, 352.916687, "LD_SPAC:white");
    TextDrawLetterSize(playerid,playerid,UPSTATS[5][playerid], 0.000000, 0.000000);
    TextDrawTextSize(playerid,playerid,UPSTATS[5][playerid], 368.125000, 0.583311);
TextDrawAlignment(playerid,playerid,UPSTATS[5][playerid], 1);
TextDrawColor(playerid,playerid,UPSTATS[5][playerid], -5963521);
TextDrawSetShadow(playerid,playerid,UPSTATS[5][playerid], 0);
TextDrawSetOutline(playerid,playerid,UPSTATS[5][playerid], 0);
TextDrawFont(playerid,playerid,UPSTATS[5][playerid], 4);

UPSTATS[6][playerid] = TextDrawCreate(310.625000, 251.416580, "LD_SPAC:white");
TextDrawLetterSize(playerid,UPSTATS[6][playerid], 0.000000, 0.000000);
TextDrawTextSize(playerid,UPSTATS[6][playerid], 186.875000, -0.583328);
TextDrawAlignment(playerid,UPSTATS[6][playerid], 1);
TextDrawColor(playerid,UPSTATS[6][playerid], -5963521);
TextDrawSetShadow(playerid,UPSTATS[6][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[6][playerid], 0);
TextDrawFont(playerid,UPSTATS[6][playerid], 4);

UPSTATS[7][playerid] = TextDrawCreate(270.625000, 113.750007, "Mirsoni_Alibasic");
TextDrawLetterSize(playerid,UPSTATS[7][playerid], 0.234374, 1.074998);
TextDrawAlignment(playerid,UPSTATS[7][playerid], 1);
TextDrawColor(playerid,UPSTATS[7][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[7][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[7][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[7][playerid], 51);
TextDrawFont(playerid,UPSTATS[7][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[7][playerid], 1);

UPSTATS[8][playerid] = TextDrawCreate(193.125000, 158.666671, "Level:50");
TextDrawLetterSize(playerid,UPSTATS[8][playerid], 0.228123, 1.045832);
TextDrawAlignment(playerid,UPSTATS[8][playerid], 1);
TextDrawColor(playerid,UPSTATS[8][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[8][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[8][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[8][playerid], 51);
TextDrawFont(playerid,UPSTATS[8][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[8][playerid], 1);

UPSTATS[9][playerid] = TextDrawCreate(179.375000, 177.333358, "Respekti: 50/500");
TextDrawLetterSize(playerid,UPSTATS[9][playerid], 0.193748, 1.016666);
TextDrawAlignment(playerid,UPSTATS[9][playerid], 1);
TextDrawColor(playerid,UPSTATS[9][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[9][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[9][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[9][playerid], 51);
TextDrawFont(playerid,UPSTATS[9][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[9][playerid], 1);

UPSTATS[10][playerid] = TextDrawCreate(188.125000, 196.583358, "Sati igre: 1000");
TextDrawLetterSize(playerid,UPSTATS[10][playerid], 0.190623, 1.016666);
TextDrawAlignment(playerid,UPSTATS[10][playerid], 1);
TextDrawColor(playerid,UPSTATS[10][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[10][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[10][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[10][playerid], 51);
TextDrawFont(playerid,UPSTATS[10][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[10][playerid], 1);

UPSTATS[11][playerid] = TextDrawCreate(195.000000, 218.166671, "Rank org: 5");
TextDrawLetterSize(playerid,UPSTATS[11][playerid], 0.193748, 1.045832);
TextDrawAlignment(playerid,UPSTATS[11][playerid], 1);
TextDrawColor(playerid,UPSTATS[11][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[11][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[11][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[11][playerid], 51);
TextDrawFont(playerid,UPSTATS[11][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[11][playerid], 1);

UPSTATS[12][playerid] = TextDrawCreate(188.750000, 238.583358, "Org Kazna: 15");
TextDrawLetterSize(playerid,UPSTATS[12][playerid], 0.199999, 1.016666);
TextDrawAlignment(playerid,UPSTATS[12][playerid], 1);
TextDrawColor(playerid,UPSTATS[12][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[12][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[12][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[12][playerid], 51);
TextDrawFont(playerid,UPSTATS[12][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[12][playerid], 1);

UPSTATS[13][playerid] = TextDrawCreate(195.000000, 264.833374, "Warn: 4/5");
TextDrawLetterSize(playerid,UPSTATS[13][playerid], 0.218749, 1.074998);
TextDrawAlignment(playerid,UPSTATS[13][playerid], 1);
TextDrawColor(playerid,UPSTATS[13][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[13][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[13][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[13][playerid], 51);
TextDrawFont(playerid,UPSTATS[13][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[13][playerid], 1);

UPSTATS[14][playerid] = TextDrawCreate(185.625000, 288.166625, "Posao ugovor: 5");
TextDrawLetterSize(playerid,UPSTATS[14][playerid], 0.184374, 1.074998);
TextDrawAlignment(playerid,UPSTATS[14][playerid], 1);
TextDrawColor(playerid,UPSTATS[14][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[14][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[14][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[14][playerid], 51);
TextDrawFont(playerid,UPSTATS[14][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[14][playerid], 1);

UPSTATS[15][playerid] = TextDrawCreate(165.625000, 309.749969, "Novac: 50000000$");
TextDrawLetterSize(playerid,UPSTATS[15][playerid], 0.268748, 1.104166);
TextDrawAlignment(playerid,UPSTATS[15][playerid], 1);
TextDrawColor(playerid,UPSTATS[15][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[15][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[15][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[15][playerid], 51);
TextDrawFont(playerid,UPSTATS[15][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[15][playerid], 1);

UPSTATS[16][playerid] = TextDrawCreate(170.625000, 323.750061, "Banka: 500000000$");
TextDrawLetterSize(playerid,UPSTATS[16][playerid], 0.246874, 1.162498);
TextDrawAlignment(playerid,UPSTATS[16][playerid], 1);
TextDrawColor(playerid,UPSTATS[16][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[16][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[16][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[16][playerid], 51);
TextDrawFont(playerid,UPSTATS[16][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[16][playerid], 1);

UPSTATS[17][playerid] = TextDrawCreate(191.250000, 356.999969, "nezaposlen");
TextDrawLetterSize(playerid,UPSTATS[17][playerid], 0.215624, 1.016666);
TextDrawAlignment(playerid,UPSTATS[17][playerid], 1);
TextDrawColor(playerid,UPSTATS[17][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[17][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[17][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[17][playerid], 51);
TextDrawFont(playerid,UPSTATS[17][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[17][playerid], 1);

UPSTATS[18][playerid] = TextDrawCreate(322.500000, 137.083312, "Kuca: Da");
TextDrawLetterSize(playerid,UPSTATS[18][playerid], 0.228125, 1.016666);
TextDrawAlignment(playerid,UPSTATS[18][playerid], 1);
TextDrawColor(playerid,UPSTATS[18][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[18][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[18][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[18][playerid], 51);
TextDrawFont(playerid,UPSTATS[18][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[18][playerid], 1);

UPSTATS[19][playerid] = TextDrawCreate(322.500000, 149.916564, "Plovilo: Da");
TextDrawLetterSize(playerid,UPSTATS[19][playerid], 0.217499, 1.039999);
TextDrawAlignment(playerid,UPSTATS[19][playerid], 1);
TextDrawColor(playerid,UPSTATS[19][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[19][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[19][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[19][playerid], 51);
TextDrawFont(playerid,UPSTATS[19][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[19][playerid], 1);

UPSTATS[20][playerid] = TextDrawCreate(322.500000, 162.749969, "Motor: Da");
TextDrawLetterSize(playerid,UPSTATS[20][playerid], 0.236248, 1.045830);
TextDrawAlignment(playerid,UPSTATS[20][playerid], 1);
TextDrawColor(playerid,UPSTATS[20][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[20][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[20][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[20][playerid], 51);
TextDrawFont(playerid,UPSTATS[20][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[20][playerid], 1);

UPSTATS[21][playerid] = TextDrawCreate(323.125000, 175.583328, "Letjelica: Da");
TextDrawLetterSize(playerid,UPSTATS[21][playerid], 0.217499, 1.028331);
TextDrawAlignment(playerid,UPSTATS[21][playerid], 1);
TextDrawColor(playerid,UPSTATS[21][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[21][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[21][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[21][playerid], 51);
TextDrawFont(playerid,UPSTATS[21][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[21][playerid], 1);

UPSTATS[22][playerid] = TextDrawCreate(323.750000, 187.833297, "Stan: Da");
TextDrawLetterSize(playerid,UPSTATS[22][playerid], 0.244374, 1.028331);
TextDrawAlignment(playerid,UPSTATS[22][playerid], 1);
TextDrawColor(playerid,UPSTATS[22][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[22][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[22][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[22][playerid], 51);
TextDrawFont(playerid,UPSTATS[22][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[22][playerid], 1);

UPSTATS[23][playerid] = TextDrawCreate(323.125000, 198.333312, "Vikendica: Da");
TextDrawLetterSize(playerid,UPSTATS[23][playerid], 0.224373, 1.110000);
TextDrawAlignment(playerid,UPSTATS[23][playerid], 1);
TextDrawColor(playerid,UPSTATS[23][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[23][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[23][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[23][playerid], 51);
TextDrawFont(playerid,UPSTATS[23][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[23][playerid], 1);

UPSTATS[24][playerid] = TextDrawCreate(323.750000, 210.000045, "Biciklo: Da");
TextDrawLetterSize(playerid,UPSTATS[24][playerid], 0.251873, 1.174165);
TextDrawAlignment(playerid,UPSTATS[24][playerid], 1);
TextDrawColor(playerid,UPSTATS[24][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[24][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[24][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[24][playerid], 51);
TextDrawFont(playerid,UPSTATS[24][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[24][playerid], 1);

UPSTATS[25][playerid] = TextDrawCreate(324.375000, 222.833312, "Firma: Da");
TextDrawLetterSize(playerid,UPSTATS[25][playerid], 0.256873, 1.086665);
TextDrawAlignment(playerid,UPSTATS[25][playerid], 1);
TextDrawColor(playerid,UPSTATS[25][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[25][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[25][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[25][playerid], 51);
TextDrawFont(playerid,UPSTATS[25][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[25][playerid], 1);

UPSTATS[26][playerid] = TextDrawCreate(323.750000, 234.499969, "Mobilni: Da");
TextDrawLetterSize(playerid,UPSTATS[26][playerid], 0.254999, 1.057497);
TextDrawAlignment(playerid,UPSTATS[26][playerid], 1);
TextDrawColor(playerid,UPSTATS[26][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[26][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[26][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[26][playerid], 51);
TextDrawFont(playerid,UPSTATS[26][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[26][playerid], 1);

UPSTATS[27][playerid] = TextDrawCreate(318.750000, 254.916656, "Droga: 5000g");
TextDrawLetterSize(playerid,UPSTATS[27][playerid], 0.215625, 1.127498);
TextDrawAlignment(playerid,UPSTATS[27][playerid], 1);
TextDrawColor(playerid,UPSTATS[27][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[27][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[27][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[27][playerid], 51);
TextDrawFont(playerid,UPSTATS[27][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[27][playerid], 1);

UPSTATS[28][playerid] = TextDrawCreate(319.375000, 266.583435, "Mats: 150000");
TextDrawLetterSize(playerid,UPSTATS[28][playerid], 0.226248, 1.063331);
TextDrawAlignment(playerid,UPSTATS[28][playerid], 1);
TextDrawColor(playerid,UPSTATS[28][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[28][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[28][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[28][playerid], 51);
TextDrawFont(playerid,UPSTATS[28][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[28][playerid], 1);

UPSTATS[29][playerid] = TextDrawCreate(319.375000, 277.083435, "Godine: 50");
TextDrawLetterSize(playerid,UPSTATS[29][playerid], 0.239998, 1.156666);
TextDrawAlignment(playerid,UPSTATS[29][playerid], 1);
TextDrawColor(playerid,UPSTATS[29][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[29][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[29][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[29][playerid], 51);
TextDrawFont(playerid,UPSTATS[29][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[29][playerid], 1);

UPSTATS[30][playerid] = TextDrawCreate(319.375000, 288.750030, "Pol: Musko");
TextDrawLetterSize(playerid,UPSTATS[30][playerid], 0.231874, 1.197499);
TextDrawAlignment(playerid,UPSTATS[30][playerid], 1);
TextDrawColor(playerid,UPSTATS[30][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[30][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[30][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[30][playerid], 51);
TextDrawFont(playerid,UPSTATS[30][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[30][playerid], 1);

UPSTATS[31][playerid] = TextDrawCreate(319.375000, 299.833374, "Wanted: 5");
TextDrawLetterSize(playerid,UPSTATS[31][playerid], 0.231249, 1.214998);
TextDrawAlignment(playerid,UPSTATS[31][playerid], 1);
TextDrawColor(playerid,UPSTATS[31][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[31][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[31][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[31][playerid], 51);
TextDrawFont(playerid,UPSTATS[31][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[31][playerid], 1);

UPSTATS[32][playerid] = TextDrawCreate(320.000000, 311.499969, "Kredit: Da");
TextDrawLetterSize(playerid,playerid,UPSTATS[32][playerid], 0.248124, 1.185832);
TextDrawAlignment(playerid,playerid,UPSTATS[32][playerid], 1);
TextDrawColor(playerid,playerid,UPSTATS[32][playerid], -1);
TextDrawSetShadow(playerid,playerid,UPSTATS[32][playerid], 0);
TextDrawSetOutline(playerid,playerid,UPSTATS[32][playerid], 1);
TextDrawBackgroundColor(playerid,playerid,UPSTATS[32][playerid], 51);
TextDrawFont(playerid,playerid,UPSTATS[32][playerid], 2);
TextDrawSetProportional(playerid,playerid,UPSTATS[32][playerid], 1);

UPSTATS[33][playerid] = TextDrawCreate(320.000000, 323.750091, "Mob kredit: 50");
TextDrawLetterSize(playerid,UPSTATS[33][playerid], 0.211873, 1.168333);
TextDrawAlignment(playerid,UPSTATS[33][playerid], 1);
TextDrawColor(playerid,UPSTATS[33][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[33][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[33][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[33][playerid], 51);
TextDrawFont(playerid,UPSTATS[33][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[33][playerid], 1);

UPSTATS[34][playerid] = TextDrawCreate(319.375000, 334.833465, "Uhapsen puta: 50");
TextDrawLetterSize(playerid,UPSTATS[34][playerid], 0.216874, 1.179998);
TextDrawAlignment(playerid,UPSTATS[34][playerid], 1);
TextDrawColor(playerid,UPSTATS[34][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[34][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[34][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[34][playerid], 51);
TextDrawFont(playerid,UPSTATS[34][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[34][playerid], 1);

UPSTATS[35][playerid] = TextDrawCreate(346.875000, 356.416687, "Los Santos Police Department");
TextDrawLetterSize(playerid,UPSTATS[35][playerid], 0.172499, 0.999166);
TextDrawAlignment(playerid,UPSTATS[35][playerid], 1);
TextDrawColor(playerid,UPSTATS[35][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[35][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[35][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[35][playerid], 51);
TextDrawFont(playerid,UPSTATS[35][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[35][playerid], 1);

UPSTATS[36][playerid] = TextDrawCreate(404.375000, 137.083343, "Auto: Da");
TextDrawLetterSize(playerid,UPSTATS[36][playerid], 0.262500, 1.039999);
TextDrawAlignment(playerid,UPSTATS[36][playerid], 1);
TextDrawColor(playerid,UPSTATS[36][playerid], -1);
TextDrawSetShadow(playerid,UPSTATS[36][playerid], 0);
TextDrawSetOutline(playerid,UPSTATS[36][playerid], 1);
TextDrawBackgroundColor(playerid,UPSTATS[36][playerid], 51);
TextDrawFont(playerid,UPSTATS[36][playerid], 2);
TextDrawSetProportional(playerid,UPSTATS[36][playerid], 1);
return 1;
}

I komandu:



CMD:stats(playerid, params[])
{
if(KreiranStats[playerid] == 0)
{
new string[256], iskustvo; iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
new auto1[3], motor[3], bicikla[3], letelica[3], plovilo[3], kuca[3], stan[3], vikendica[3], firma[3], mobilni[3], pol[7], kredit[3];
if(PlayerInfo[playerid][pPreostaloZaOtplatu] == 0) kredit = "Ne";
else if(PlayerInfo[playerid][pPreostaloZaOtplatu] > 0) kredit = "Da";
if(PlayerInfo[playerid][pSex] == 1) pol = "Musko";
else if(PlayerInfo[playerid][pSex] == 2) pol = "Zensko";
if(PlayerInfo[playerid][pMobilni] == 0) mobilni = "Ne";
else if(PlayerInfo[playerid][pMobilni] != 0) mobilni = "Da";
if(PlayerInfo[playerid][pPosedovanjeAuta] == -1) auto1 = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeAuta] != -1) auto1 = "Da";
if(PlayerInfo[playerid][pPosedovanjeMotora] == -1) motor = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeMotora] != -1) motor = "Da";
if(PlayerInfo[playerid][pPosedovanjeBicikla] == -1) bicikla = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeBicikla] != -1) bicikla = "Da";
if(PlayerInfo[playerid][pPosedovanjeAviona] == -1) letelica = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeAviona] != -1) letelica = "Da";
if(PlayerInfo[playerid][pPosedovanjePlovila] == -1) plovilo = "Ne";
else if(PlayerInfo[playerid][pPosedovanjePlovila] != -1) plovilo = "Da";
if(PlayerInfo[playerid][pPosedovanjeKuce] == -1) kuca = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeKuce] != -1) kuca = "Da";
if(PlayerInfo[playerid][pPosedovanjeStana] == -1) stan = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeStana] != -1) stan = "Da";
if(PlayerInfo[playerid][pPosedovanjeVikendice] == -1) vikendica = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeVikendice] != -1) vikendica = "Da";
if(PlayerInfo[playerid][pPosedovanjeFirme] == -1) firma = "Ne";
else if(PlayerInfo[playerid][pPosedovanjeFirme] != -1) firma = "Da";
for(new i = 0; i < 37; i++) PlayerTextDrawShow(playerid, UPSTATS[i][playerid]);
KreiranStats[playerid] = 1; SCM(playerid,-1,"[CA:RP] "CRVENA"Da zatvorite stats kucajte ponovo '/stats'!");
format(string, sizeof(string),"%s",GetName(playerid));
PlayerTextDrawSetString(playerid,UPSTATS[7][playerid], string);
format(string, sizeof(string),"~y~Posao ugovor: ~w~%d",PlayerInfo[playerid][pPosaoUgovor]);
PlayerTextDrawSetString(playerid,UPSTATS[14][playerid], string);
format(string, sizeof(string),"~y~Novac: ~g~%d$",PlayerInfo[playerid][pNovacDzep]);
PlayerTextDrawSetString(playerid,UPSTATS[15][playerid], string);
format(string, sizeof(string),"~y~Auto: ~w~%s",auto1);
PlayerTextDrawSetString(playerid,playerid,UPSTATS[35][playerid], string);
format(string, sizeof(string),"~y~Motor: ~w~%s",motor);
PlayerTextDrawSetString(playerid,UPSTATS[20][playerid], string);
format(string, sizeof(string),"~y~Respekti: ~w~%d/%d",PlayerInfo[playerid][pExp], iskustvo);
PlayerTextDrawSetString(playerid,UPSTATS[9][playerid], string);
format(string, sizeof(string),"~y~Level: ~w~%d",PlayerInfo[playerid][pLevel]);
PlayerTextDrawSetString(playerid,UPSTATS[8][playerid], string);
format(string, sizeof(string),"%s",PosaoIme(PlayerInfo[playerid][pPosao]));
PlayerTextDrawSetString(playerid,UPSTATS[17][playerid], string);
format(string, sizeof(string),"%s",ImeOrganizacije(PlayerInfo[playerid][pClan]));
PlayerTextDrawSetString(playerid,UPSTATS[36][playerid], string);
format(string, sizeof(string),"~y~Plovilo: ~w~%s",plovilo);
PlayerTextDrawSetString(playerid,UPSTATS[19][playerid], string);
format(string, sizeof(string),"~y~Rank org: ~w~%d",PlayerInfo[playerid][pRank]);
PlayerTextDrawSetString(playerid,UPSTATS[11][playerid], string);
format(string, sizeof(string),"~y~Sati igre: ~w~%d",PlayerInfo[playerid][pSatiIgre]);
PlayerTextDrawSetString(playerid,UPSTATS[10][playerid], string);
format(string, sizeof(string),"~y~Org kazna: ~w~%d",PlayerInfo[playerid][pOrgUgovor]);
PlayerTextDrawSetString(playerid,UPSTATS[12][playerid], string);
format(string, sizeof(string),"~y~Warn: ~w~%d/5",PlayerInfo[playerid][pWarn]);
PlayerTextDrawSetString(playerid,UPSTATS[13][playerid], string);
format(string, sizeof(string),"~y~Banka: ~g~%d$",PlayerInfo[playerid][pNovacBanka]);
PlayerTextDrawSetString(playerid,UPSTATS[16][playerid], string);
format(string, sizeof(string),"~y~Kuca: ~w~%s",kuca);
PlayerTextDrawSetString(playerid,UPSTATS[18][playerid], string);
format(string, sizeof(string),"~y~Biciklo: ~w~%s",bicikla);
PlayerTextDrawSetString(playerid,UPSTATS[24][playerid], string);
format(string, sizeof(string),"~y~Vikendica: ~w~%s",vikendica);
PlayerTextDrawSetString(playerid,UPSTATS[23][playerid], string);
format(string, sizeof(string),"~y~Letjelica: ~w~%s",letelica);
PlayerTextDrawSetString(playerid,UPSTATS[24][playerid], string);
format(string, sizeof(string),"~y~Firma: ~w~%s",firma);
PlayerTextDrawSetString(playerid,UPSTATS[25][playerid], string);
format(string, sizeof(string),"~y~Stan: ~w~%s",stan);
PlayerTextDrawSetString(playerid,UPSTATS[22][playerid], string);
format(string, sizeof(string),"~y~Mobilni: ~w~%s",mobilni);
PlayerTextDrawSetString(playerid,UPSTATS[26][playerid], string);
format(string, sizeof(string),"~y~Droga: ~w~%dg",PlayerInfo[playerid][pDroga]);
PlayerTextDrawSetString(playerid,UPSTATS[27][playerid], string);
format(string, sizeof(string),"~y~Mats: ~w~%d",PlayerInfo[playerid][pMats]);
PlayerTextDrawSetString(playerid,UPSTATS[28][playerid], string);
format(string, sizeof(string),"~y~Godine: ~w~%d",PlayerInfo[playerid][pGodine]);
PlayerTextDrawSetString(playerid,UPSTATS[29][playerid], string);
format(string, sizeof(string),"~y~Pol: ~w~%s",pol);
PlayerTextDrawSetString(playerid,UPSTATS[30][playerid], string);
format(string, sizeof(string),"~y~Wanted: ~w~%d",GetPlayerWantedLevel(playerid));
PlayerTextDrawSetString(playerid,UPSTATS[31][playerid], string);
format(string, sizeof(string),"~y~Kredit: ~w~%s",kredit);
PlayerTextDrawSetString(playerid,UPSTATS[32][playerid], string);
format(string, sizeof(string),"~y~Mob kredit: ~w~%d",PlayerInfo[playerid][pMobKredit]);
PlayerTextDrawSetString(playerid,UPSTATS[33][playerid], string);
format(string, sizeof(string),"~y~Uhapsen Puta: ~w~%d",PlayerInfo[playerid][pUhapsenPuta]);
PlayerTextDrawSetString(playerid,UPSTATS[34][playerid], string);
}
else if(KreiranStats[playerid] == 1)
{
    for(new i = 0; i < 37; i++)
    {
        PlayerTextDrawShow(playerid, UPSTATS[i][playerid]);
        PlayerTextDrawDestroy(playerid, UPSTATS[i][playerid]);
        KreiranStats[playerid] = 0;
    }
}
return 1;
}