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

Wysłany: 2014-04-21, 00:47


JotP







Wiek: 26
Na forum: 4821 dni
Posty: 217

Piwa: 1215

Respekt: 44,6

Ostrzeżeń: 40%
Witam, wie kto? mo?e czemu gdy klikam nic si? nie dzieje ?
Pawn
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(playertextid == INFOBOX[4][playerid])
    {
        HideInfoBox(playerid);
        CancelSelectTextDraw(playerid);
        return 1;
    }
    if(playertextid == INFOBOX[5][playerid])
    {
        HideInfoBox(playerid);
        CancelSelectTextDraw(playerid);
        return 1;
    }
    return 1;
}


Za pomoc piwko i respekt

Podpis
3guzqx
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-04-21, 11:55


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

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

"JotP" napisał/a:

Witam, wie kto? mo?e czemu gdy klikam nic si? nie dzieje ?
Pawn
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(playertextid == INFOBOX[4][playerid])
    {
        HideInfoBox(playerid);
        CancelSelectTextDraw(playerid);
        return 1;
    }
    if(playertextid == INFOBOX[5][playerid])
    {
        HideInfoBox(playerid);
        CancelSelectTextDraw(playerid);
        return 1;
    }
    return 1;
}


Za pomoc piwko i respekt


Poka tworzenie

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-04-21, 16:09


JotP







Wiek: 26
Na forum: 4821 dni
Posty: 217

Piwa: 1215

Respekt: 44,6

Ostrzeżeń: 40%
Pawn
funkcja CreateInfoBox(playerid)
{
    INFOBOX[0][playerid] = CreatePlayerTextDraw(playerid202.800003297.926666"usebox");
    PlayerTextDrawLetterSize(playeridINFOBOX[0][playerid], 0.000000, -13.175926);
    PlayerTextDrawTextSize(playeridINFOBOX[0][playerid], 436.3999930.000000);
    PlayerTextDrawAlignment(playeridINFOBOX[0][playerid], 1);
    PlayerTextDrawColor(playeridINFOBOX[0][playerid], 0);
    PlayerTextDrawUseBox(playeridINFOBOX[0][playerid], true);
    PlayerTextDrawBoxColor(playeridINFOBOX[0][playerid], 102);
    PlayerTextDrawSetShadow(playeridINFOBOX[0][playerid], 0);
    PlayerTextDrawSetOutline(playeridINFOBOX[0][playerid], 0);
    PlayerTextDrawFont(playeridINFOBOX[0][playerid], 0);

    INFOBOX[1][playerid] = CreatePlayerTextDraw(playerid199.199996182.933334"LD_SPAC:white");
    PlayerTextDrawLetterSize(playeridINFOBOX[1][playerid], 0.0000000.000000);
    PlayerTextDrawTextSize(playeridINFOBOX[1][playerid], 240.80000310.453338);
    PlayerTextDrawAlignment(playeridINFOBOX[1][playerid], 1);
    PlayerTextDrawColor(playeridINFOBOX[1][playerid], 8388863);
    PlayerTextDrawSetShadow(playeridINFOBOX[1][playerid], 0);
    PlayerTextDrawSetOutline(playeridINFOBOX[1][playerid], 0);
    PlayerTextDrawFont(playeridINFOBOX[1][playerid], 4);

    INFOBOX[2][playerid] = CreatePlayerTextDraw(playerid207.200012182.933349"~r~> ~w~Informacje");
    PlayerTextDrawLetterSize(playeridINFOBOX[2][playerid], 0.2299991.039999);
    PlayerTextDrawAlignment(playeridINFOBOX[2][playerid], 1);
    PlayerTextDrawColor(playeridINFOBOX[2][playerid], -1);
    PlayerTextDrawSetShadow(playeridINFOBOX[2][playerid], 0);
    PlayerTextDrawSetOutline(playeridINFOBOX[2][playerid], 1);
    PlayerTextDrawBackgroundColor(playeridINFOBOX[2][playerid], 51);
    PlayerTextDrawFont(playeridINFOBOX[2][playerid], 1);
    PlayerTextDrawSetProportional(playeridINFOBOX[2][playerid], 1);

    INFOBOX[3][playerid] = CreatePlayerTextDraw(playerid213.600006195.626678"New Textdraw");
    PlayerTextDrawLetterSize(playeridINFOBOX[3][playerid], 0.2259991.151999);
    PlayerTextDrawAlignment(playeridINFOBOX[3][playerid], 1);
    PlayerTextDrawColor(playeridINFOBOX[3][playerid], -1);
    PlayerTextDrawSetShadow(playeridINFOBOX[3][playerid], 0);
    PlayerTextDrawSetOutline(playeridINFOBOX[3][playerid], 1);
    PlayerTextDrawBackgroundColor(playeridINFOBOX[3][playerid], 51);
    PlayerTextDrawFont(playeridINFOBOX[3][playerid], 2);
    PlayerTextDrawSetProportional(playeridINFOBOX[3][playerid], 1);

    INFOBOX[4][playerid] = CreatePlayerTextDraw(playerid290.400024275.520019"LD_SPAC:white");
    PlayerTextDrawLetterSize(playeridINFOBOX[4][playerid], 0.0000000.000000);
    PlayerTextDrawTextSize(playeridINFOBOX[4][playerid], 54.39996314.186645);
    PlayerTextDrawAlignment(playeridINFOBOX[4][playerid], 1);
    PlayerTextDrawColor(playeridINFOBOX[4][playerid], 8388863);
    PlayerTextDrawSetShadow(playeridINFOBOX[4][playerid], 0);
    PlayerTextDrawSetOutline(playeridINFOBOX[4][playerid], 0);
    PlayerTextDrawFont(playeridINFOBOX[4][playerid], 4);

    INFOBOX[5][playerid] = CreatePlayerTextDraw(playerid296.000000277.760009"ZAMKNIJ");
    PlayerTextDrawLetterSize(playeridINFOBOX[5][playerid], 0.2579991.226666);
    PlayerTextDrawAlignment(playeridINFOBOX[5][playerid], 1);
    PlayerTextDrawColor(playeridINFOBOX[5][playerid], -1);
    PlayerTextDrawSetShadow(playeridINFOBOX[5][playerid], 0);
    PlayerTextDrawSetOutline(playeridINFOBOX[5][playerid], 1);
    PlayerTextDrawBackgroundColor(playeridINFOBOX[5][playerid], 51);
    PlayerTextDrawFont(playeridINFOBOX[5][playerid], 1);
    PlayerTextDrawSetProportional(playeridINFOBOX[5][playerid], 1);
    return 1;
}


Pawn

funkcja ShowInfoBox(playerid)
{
    PlayerTextDrawShow(playeridINFOBOX[0][playerid]);
    PlayerTextDrawShow(playeridINFOBOX[1][playerid]);
    PlayerTextDrawShow(playeridINFOBOX[2][playerid]);
    PlayerTextDrawShow(playeridINFOBOX[3][playerid]);
    PlayerTextDrawShow(playeridINFOBOX[4][playerid]);
    PlayerTextDrawShow(playeridINFOBOX[5][playerid]);
    return 1;
}


Pawn
stock INFO(playeridnazwa[], tresc[], var[])
{
    ShowInfoBox(playerid);
    SelectTextDraw(playerid0xFF0000FF);
    new str[256],str2[500];
    format(str256nazwa,var);
    format(str2500tresc,var);
    PlayerTextDrawSetString(playeridINFOBOX[2][playerid], str);
    PlayerTextDrawSetString(playeridINFOBOX[3][playerid], str2);
    return 1;
}


Pawn
CMD:test(playeridparams[])
{
    INFO(playerid"Testowa Informacja""%s jest fajny"GetPName(playerid));
    return 1;
}


p.s. Funkcja zamiast forward+public :D (mam definicje i dzia?a).

Podpis
3guzqx
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-04-21, 23:10


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

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

http://wiki.sa-mp.com/wik...awSetSelectable

...

Bez wywo?ania tego to se mo?esz klika?, ale po waginie na redtubie.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-04-21, 23:50


JotP







Wiek: 26
Na forum: 4821 dni
Posty: 217

Piwa: 1215

Respekt: 44,6

Ostrzeżeń: 40%
Aha dzi?ki !

[ Dodano: 2014-04-21, 23:56 ]
Dalej nie dzia?a

Podpis
3guzqx
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-04-22, 00:14


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

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

http://gtao.pl.com/showthread.php?t=328267

Najbardziej powinna Ci? interesowa? ta linijka:
Kod:

if(_:clickedid != INVALID_TEXT_DRAW)


Postaw piwo autorowi tego posta
 

 
Tagi: klikane
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] Klikane TD 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