Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: BlackJoe poslato April 07, 2015, 08:04:30 PRE PODNE

Naslov: [Pomoc] /pokaziosobnu
Poruka od: BlackJoe poslato April 07, 2015, 08:04:30 PRE PODNE
Skripta koju koristim: moja
Detaljan opis problema: napravio sam komandu u tdovima i sve dobro radi ali mi ne pokaže sliku mojega skina nego uvijek jedan skin pokazuje
Dio skripte:
Osobna0[playerid] = CreatePlayerTextDraw(playerid,248.000000, 180.000000, "Ime i prezime: Joe Black");
PlayerTextDrawBackgroundColor(playerid,Osobna0[playerid], 255);
PlayerTextDrawFont(playerid,Osobna0[playerid], 1);
PlayerTextDrawLetterSize(playerid,Osobna0[playerid], 0.300000, 1.000000);
PlayerTextDrawColor(playerid,Osobna0[playerid], -1);
PlayerTextDrawSetOutline(playerid,Osobna0[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna0[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna0[playerid], 1);
PlayerTextDrawUseBox(playerid,Osobna0[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna0[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna0[playerid], 449.000000, 50.000000);
PlayerTextDrawSetSelectable(playerid,Osobna0[playerid], 0);

Osobna1[playerid] = CreatePlayerTextDraw(playerid,248.000000, 193.000000, "Godine: 22");
PlayerTextDrawBackgroundColor(playerid,Osobna1[playerid], 255);
PlayerTextDrawFont(playerid,Osobna1[playerid], 1);
PlayerTextDrawLetterSize(playerid,Osobna1[playerid], 0.280000, 0.899999);
PlayerTextDrawColor(playerid,Osobna1[playerid], -1);
PlayerTextDrawSetOutline(playerid,Osobna1[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna1[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna1[playerid], 1);
PlayerTextDrawUseBox(playerid,Osobna1[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna1[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna1[playerid], 449.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,Osobna1[playerid], 0);

Osobna2[playerid] = CreatePlayerTextDraw(playerid,248.000000, 205.000000, "Telefonski broj: 123456");
PlayerTextDrawBackgroundColor(playerid,Osobna2[playerid], 255);
PlayerTextDrawFont(playerid,Osobna2[playerid], 1);
PlayerTextDrawLetterSize(playerid,Osobna2[playerid], 0.300000, 1.000000);
PlayerTextDrawColor(playerid,Osobna2[playerid], -1);
PlayerTextDrawSetOutline(playerid,Osobna2[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna2[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna2[playerid], 1);
PlayerTextDrawUseBox(playerid,Osobna2[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna2[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna2[playerid], 449.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,Osobna2[playerid], 0);

Osobna3[playerid] = CreatePlayerTextDraw(playerid,248.000000, 218.000000, "Potpis:");
PlayerTextDrawBackgroundColor(playerid,Osobna3[playerid], 255);
PlayerTextDrawFont(playerid,Osobna3[playerid], 1);
PlayerTextDrawLetterSize(playerid,Osobna3[playerid], 0.209999, 1.000000);
PlayerTextDrawColor(playerid,Osobna3[playerid], -1);
PlayerTextDrawSetOutline(playerid,Osobna3[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna3[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna3[playerid], 1);
PlayerTextDrawUseBox(playerid,Osobna3[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna3[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna3[playerid], 449.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,Osobna3[playerid], 0);

Osobna4[playerid] = CreatePlayerTextDraw(playerid,248.000000, 230.000000, "JoeBlack");
PlayerTextDrawBackgroundColor(playerid,Osobna4[playerid], 255);
PlayerTextDrawFont(playerid,Osobna4[playerid], 0);
PlayerTextDrawLetterSize(playerid,Osobna4[playerid], 0.819999, 4.099998);
PlayerTextDrawColor(playerid,Osobna4[playerid], 255);
PlayerTextDrawSetOutline(playerid,Osobna4[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna4[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna4[playerid], 0);
PlayerTextDrawUseBox(playerid,Osobna4[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna4[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna4[playerid], 449.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,Osobna4[playerid], 0);

Osobna5[playerid] = CreatePlayerTextDraw(playerid,389.000000, 260.000000, "X:RP v2.0 by Joe");
PlayerTextDrawBackgroundColor(playerid,Osobna5[playerid], 255);
PlayerTextDrawFont(playerid,Osobna5[playerid], 1);
PlayerTextDrawLetterSize(playerid,Osobna5[playerid], 0.150000, 0.799999);
PlayerTextDrawColor(playerid,Osobna5[playerid], 255);
PlayerTextDrawSetOutline(playerid,Osobna5[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna5[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna5[playerid], 0);
PlayerTextDrawSetSelectable(playerid,Osobna5[playerid], 0);

Osobna6[playerid] = CreatePlayerTextDraw(playerid,377.000000, 180.000000, "New Textdraw");
PlayerTextDrawBackgroundColor(playerid,Osobna6[playerid], 255);
PlayerTextDrawFont(playerid,Osobna6[playerid], 5);
PlayerTextDrawLetterSize(playerid,Osobna6[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Osobna6[playerid], -1);
PlayerTextDrawSetOutline(playerid,Osobna6[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna6[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna6[playerid], 1);
PlayerTextDrawUseBox(playerid,Osobna6[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna6[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna6[playerid], 72.000000, 78.000000);
PlayerTextDrawSetPreviewModel(playerid, Osobna6[playerid], 1);
PlayerTextDrawSetPreviewRot(playerid, Osobna6[playerid], -16.000000, 0.000000, -55.000000, 1.000000);
PlayerTextDrawSetSelectable(playerid,Osobna6[playerid], 0);

PlayerTextDrawShow(giveplayerid, Osobna0[playerid]);
    PlayerTextDrawShow(giveplayerid, Osobna1[playerid]);
    PlayerTextDrawShow(giveplayerid, Osobna2[playerid]);
    PlayerTextDrawShow(giveplayerid, Osobna3[playerid]);
    PlayerTextDrawShow(giveplayerid, Osobna4[playerid]);
    PlayerTextDrawShow(giveplayerid, Osobna5[playerid]);
    PlayerTextDrawShow(giveplayerid, Osobna6[playerid]);
    //PlayerTextDrawShow(giveplayerid, Osobna7[playerid]);
new str[1256];
    format(str, sizeof(str), "Ime i prezime: %s",GetName(playerid));
PlayerTextDrawSetString(giveplayerid, Osobna0[playerid], str);
format(str, sizeof(str), "Godine: %d", P_Enum[playerid][pe_Godine]);
PlayerTextDrawSetString(giveplayerid, Osobna1[playerid], str);
format(str, sizeof(str), "Broj telefona: %d", P_Enum[playerid][pe_Mobitel]);
PlayerTextDrawSetString(giveplayerid, Osobna2[playerid], str);
format(str, sizeof(str), "%s", GetName(playerid));
PlayerTextDrawSetString(giveplayerid, Osobna4[playerid], str);
PlayerTextDrawSetPreviewModel(giveplayerid, Osobna6[playerid], GetPlayerSkin(playerid));
format(string, sizeof(string), "   %s vam je pokazao osobnu kartu.", GetName(playerid));
SCM(giveplayerid, -1, string);
INFO(giveplayerid, "Da vratite osobnu kucajte /vratiosobnu");


Neke slike/video za lakse dobivanje pomoci(neobavezno):
(http://i.imgur.com/AyuWO4p.png)
Naslov: Odg: [Pomoc] /pokaziosobnu
Poruka od: HamZa303 poslato April 07, 2015, 09:28:17 PRE PODNE
   new skin = GetPlayerSkin(playerid);
   PlayerTextDrawSetPreviewModel(playerid, Osobna6[playerid], skin);
Naslov: Odg: [Pomoc] /pokaziosobnu
Poruka od: BlackJoe poslato April 07, 2015, 11:43:07 PRE PODNE
ništa
i dalje mi je isto
Naslov: Odg: [Pomoc] /pokaziosobnu
Poruka od: K ROSE poslato April 07, 2015, 12:06:03 POSLE PODNE
Primjer

PlayerTextDrawSetPreviewModel(playerid, Imetextdrawa[playerid], GetPlayerSkin(playerid));

Mora da radi.
Naslov: Odg: [Pomoc] /pokaziosobnu
Poruka od: BlackJoe poslato April 07, 2015, 20:42:11 POSLE PODNE
neradi nko, pkušao sam to prvo
ožda zato jer sam namjestio da ne pokazuje playerid nego giveplayerid ?


EDIT: neradi kad prvi put napišem /pokaziosobnu 0
ali kad drugi put to upišem onda normalno baci skin koji imam i tako uvijek kad izmjenim skin
Naslov: Odg: [Pomoc] /pokaziosobnu
Poruka od: antonioas poslato April 07, 2015, 21:39:42 POSLE PODNE
stavi onda prvo ovo PlayerTextDrawSetPreviewModel(giveplayerid, Osobna6[playerid], GetPlayerSkin(playerid)); i ispod tog tek PlayerTextDrawShow(giveplayerid, Osobna6[playerid]);
Naslov: Odg: [Pomoc] /pokaziosobnu
Poruka od: BlackJoe poslato April 07, 2015, 21:49:36 POSLE PODNE
hvala ti puno
sad radi normalno