Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2014-02-27, 02:31


PvF.GreeN







Wiek: 28
Na forum: 4814 dni
Posty: 209
Nick w MP: NexuS

Piwa: 2883

Respekt: 128
Respekt: 128

Ostrzeżeń: 60%
Cze?? postanowi?em zrobi? wybiera?ke, ?e skiny pokazuj? si? w TD. Prawie mi to wysz?o lecz mam bugi i nie wiem jak to naprawi?, poniewa? robie to pierwszy raz :c I nie mam zielonego poj?cia dlaczego si? tak dzieje.

Wygl?da to tak. :



a kod wygl?da tak.

Pawn
#include <a_samp>

new PlayerText: Skin_ID1;
new PlayerText: Skin_ID2;
new PlayerText: Skin_ID3;
new Skins;

main(){}

public OnGameModeInit()
{
    for(Skins = 0; Skins < 299; Skins++)
    {
         AddPlayerClass(Skins,2566.5068,-1732.5140,1.6406,346.8111,0,0,0,0,0,0);
    }
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    Skin_ID1 = CreatePlayerTextDraw(playerid, 521.000000, 274.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, Skin_ID1, 0);
    PlayerTextDrawFont(playerid, Skin_ID1, TEXT_DRAW_FONT_MODEL_PREVIEW);
    PlayerTextDrawTextSize(playerid, Skin_ID1, 85.000000, 76.000000);
    PlayerTextDrawSetPreviewModel(playerid, Skin_ID1, GetPlayerSkin(playerid));
    PlayerTextDrawShow(playerid, Skin_ID1);
    Skin_ID2 = CreatePlayerTextDraw(playerid, 158.500, 347.500, "_");
    PlayerTextDrawBackgroundColor(playerid, Skin_ID2, 0);
    PlayerTextDrawFont(playerid, Skin_ID2, TEXT_DRAW_FONT_MODEL_PREVIEW);
    PlayerTextDrawTextSize(playerid, Skin_ID2, 58.000, 80.500);
    PlayerTextDrawSetPreviewModel(playerid, Skin_ID2, GetPlayerSkin(playerid)+1);
    PlayerTextDrawShow(playerid, Skin_ID2);
    Skin_ID3 = CreatePlayerTextDraw(playerid, 250.000, 71.500, "_");
    PlayerTextDrawBackgroundColor(playerid, Skin_ID3, 0);
    PlayerTextDrawFont(playerid, Skin_ID3, TEXT_DRAW_FONT_MODEL_PREVIEW);
    PlayerTextDrawTextSize(playerid, Skin_ID3, 103.000, 271.000);
    PlayerTextDrawSetPreviewModel(playerid, Skin_ID3, GetPlayerSkin(playerid)-1);
    PlayerTextDrawShow(playerid, Skin_ID3);
    return 1;
}



Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-02-27, 06:24


IgrexolonO







Wiek: 35
Na forum: 6951 dni
Posty: 1386

Piwa: 1062

Respekt: 651,8
Respekt: 651,8Respekt: 651,8

Czyli co Ci w?a?ciwie nie dzia?a..?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-02-27, 11:18


=X=

WUJCIO DOBRA RADA






Wiek: 53
Na forum: 4666 dni
Posty: 134
SPONSOR

Piwa: 641

Respekt: 209,5
Respekt: 209,5Respekt: 209,5

Ostrzeżeń: 100%
"PvF.GreeN" napisał/a:

Cze?? postanowi?em zrobi? wybiera?ke, ?e skiny pokazuj? si? w TD. Prawie mi to wysz?o lecz mam bugi i nie wiem jak to naprawi?, poniewa? robie to pierwszy raz :c I nie mam zielonego poj?cia dlaczego si? tak dzieje.

Wygl?da to tak. :

Obrazek

a kod wygl?da tak.

Pawn
#include <a_samp>

new PlayerText: Skin_ID1;
new PlayerText: Skin_ID2;
new PlayerText: Skin_ID3;
new Skins;

main(){}

public OnGameModeInit()
{
    for(Skins = 0; Skins < 299; Skins++)
    {
         AddPlayerClass(Skins,2566.5068,-1732.5140,1.6406,346.8111,0,0,0,0,0,0);
    }
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    Skin_ID1 = CreatePlayerTextDraw(playerid, 521.000000, 274.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, Skin_ID1, 0);
    PlayerTextDrawFont(playerid, Skin_ID1, TEXT_DRAW_FONT_MODEL_PREVIEW);
    PlayerTextDrawTextSize(playerid, Skin_ID1, 85.000000, 76.000000);
    PlayerTextDrawSetPreviewModel(playerid, Skin_ID1, GetPlayerSkin(playerid));
    PlayerTextDrawShow(playerid, Skin_ID1);
    Skin_ID2 = CreatePlayerTextDraw(playerid, 158.500, 347.500, "_");
    PlayerTextDrawBackgroundColor(playerid, Skin_ID2, 0);
    PlayerTextDrawFont(playerid, Skin_ID2, TEXT_DRAW_FONT_MODEL_PREVIEW);
    PlayerTextDrawTextSize(playerid, Skin_ID2, 58.000, 80.500);
    PlayerTextDrawSetPreviewModel(playerid, Skin_ID2, GetPlayerSkin(playerid)+1);
    PlayerTextDrawShow(playerid, Skin_ID2);
    Skin_ID3 = CreatePlayerTextDraw(playerid, 250.000, 71.500, "_");
    PlayerTextDrawBackgroundColor(playerid, Skin_ID3, 0);
    PlayerTextDrawFont(playerid, Skin_ID3, TEXT_DRAW_FONT_MODEL_PREVIEW);
    PlayerTextDrawTextSize(playerid, Skin_ID3, 103.000, 271.000);
    PlayerTextDrawSetPreviewModel(playerid, Skin_ID3, GetPlayerSkin(playerid)-1);
    PlayerTextDrawShow(playerid, Skin_ID3);
    return 1;
}



Po po?udniu napisz? selekcje skin?w [0 - 299] w TextDraw, i wystawi? na forum w dziale skrypty tym co chc? si? nauczy? robi? TD + selekcja w TD, odrodzenie w TD + include

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-02-27, 12:10


PvF.GreeN







Wiek: 28
Na forum: 4814 dni
Posty: 209
Nick w MP: NexuS

Piwa: 2883

Respekt: 128
Respekt: 128

Ostrzeżeń: 60%
IgrexolonO, chodzi mi bardziej o to co si? dzieje na zdj?ciu. Ale ju? wiem czemu sie tak dzieje. pom?g? mi kto? na srawno.pl wi?c temat do zamkni?cia.

Postaw piwo autorowi tego posta
 

 
Tagi: wybierałka :: skin
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku