Wysłany: 2014-04-21, 00:47
JotP
Wiek: 26 Na forum: 4821 dni Posty: 217
Piwa : 1215
Witam, wie kto? mo?e czemu gdy klikam nic si? nie dzieje ?
Pawn public OnPlayerClickPlayerTextDraw ( playerid , PlayerText : 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
Wysłany: 2014-04-21, 11:55
IgrexolonO
Wiek: 34 Na forum: 6809 dni Posty: 1386
Piwa : 1062
"JotP" napisał/a :Witam, wie kto? mo?e czemu gdy klikam nic si? nie dzieje ?
Pawn public OnPlayerClickPlayerTextDraw ( playerid , PlayerText : 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
Wysłany: 2014-04-21, 16:09
JotP
Wiek: 26 Na forum: 4821 dni Posty: 217
Piwa : 1215
Pawn funkcja CreateInfoBox ( playerid )
{
INFOBOX [ 0 ][ playerid ] = CreatePlayerTextDraw ( playerid , 202.800003 , 297.926666 , "usebox" );
PlayerTextDrawLetterSize ( playerid , INFOBOX [ 0 ][ playerid ], 0.000000 , - 13.175926 );
PlayerTextDrawTextSize ( playerid , INFOBOX [ 0 ][ playerid ], 436.399993 , 0.000000 );
PlayerTextDrawAlignment ( playerid , INFOBOX [ 0 ][ playerid ], 1 );
PlayerTextDrawColor ( playerid , INFOBOX [ 0 ][ playerid ], 0 );
PlayerTextDrawUseBox ( playerid , INFOBOX [ 0 ][ playerid ], true );
PlayerTextDrawBoxColor ( playerid , INFOBOX [ 0 ][ playerid ], 102 );
PlayerTextDrawSetShadow ( playerid , INFOBOX [ 0 ][ playerid ], 0 );
PlayerTextDrawSetOutline ( playerid , INFOBOX [ 0 ][ playerid ], 0 );
PlayerTextDrawFont ( playerid , INFOBOX [ 0 ][ playerid ], 0 );
INFOBOX [ 1 ][ playerid ] = CreatePlayerTextDraw ( playerid , 199.199996 , 182.933334 , "LD_SPAC:white" );
PlayerTextDrawLetterSize ( playerid , INFOBOX [ 1 ][ playerid ], 0.000000 , 0.000000 );
PlayerTextDrawTextSize ( playerid , INFOBOX [ 1 ][ playerid ], 240.800003 , 10.453338 );
PlayerTextDrawAlignment ( playerid , INFOBOX [ 1 ][ playerid ], 1 );
PlayerTextDrawColor ( playerid , INFOBOX [ 1 ][ playerid ], 8388863 );
PlayerTextDrawSetShadow ( playerid , INFOBOX [ 1 ][ playerid ], 0 );
PlayerTextDrawSetOutline ( playerid , INFOBOX [ 1 ][ playerid ], 0 );
PlayerTextDrawFont ( playerid , INFOBOX [ 1 ][ playerid ], 4 );
INFOBOX [ 2 ][ playerid ] = CreatePlayerTextDraw ( playerid , 207.200012 , 182.933349 , "~r~> ~w~Informacje" );
PlayerTextDrawLetterSize ( playerid , INFOBOX [ 2 ][ playerid ], 0.229999 , 1.039999 );
PlayerTextDrawAlignment ( playerid , INFOBOX [ 2 ][ playerid ], 1 );
PlayerTextDrawColor ( playerid , INFOBOX [ 2 ][ playerid ], - 1 );
PlayerTextDrawSetShadow ( playerid , INFOBOX [ 2 ][ playerid ], 0 );
PlayerTextDrawSetOutline ( playerid , INFOBOX [ 2 ][ playerid ], 1 );
PlayerTextDrawBackgroundColor ( playerid , INFOBOX [ 2 ][ playerid ], 51 );
PlayerTextDrawFont ( playerid , INFOBOX [ 2 ][ playerid ], 1 );
PlayerTextDrawSetProportional ( playerid , INFOBOX [ 2 ][ playerid ], 1 );
INFOBOX [ 3 ][ playerid ] = CreatePlayerTextDraw ( playerid , 213.600006 , 195.626678 , "New Textdraw" );
PlayerTextDrawLetterSize ( playerid , INFOBOX [ 3 ][ playerid ], 0.225999 , 1.151999 );
PlayerTextDrawAlignment ( playerid , INFOBOX [ 3 ][ playerid ], 1 );
PlayerTextDrawColor ( playerid , INFOBOX [ 3 ][ playerid ], - 1 );
PlayerTextDrawSetShadow ( playerid , INFOBOX [ 3 ][ playerid ], 0 );
PlayerTextDrawSetOutline ( playerid , INFOBOX [ 3 ][ playerid ], 1 );
PlayerTextDrawBackgroundColor ( playerid , INFOBOX [ 3 ][ playerid ], 51 );
PlayerTextDrawFont ( playerid , INFOBOX [ 3 ][ playerid ], 2 );
PlayerTextDrawSetProportional ( playerid , INFOBOX [ 3 ][ playerid ], 1 );
INFOBOX [ 4 ][ playerid ] = CreatePlayerTextDraw ( playerid , 290.400024 , 275.520019 , "LD_SPAC:white" );
PlayerTextDrawLetterSize ( playerid , INFOBOX [ 4 ][ playerid ], 0.000000 , 0.000000 );
PlayerTextDrawTextSize ( playerid , INFOBOX [ 4 ][ playerid ], 54.399963 , 14.186645 );
PlayerTextDrawAlignment ( playerid , INFOBOX [ 4 ][ playerid ], 1 );
PlayerTextDrawColor ( playerid , INFOBOX [ 4 ][ playerid ], 8388863 );
PlayerTextDrawSetShadow ( playerid , INFOBOX [ 4 ][ playerid ], 0 );
PlayerTextDrawSetOutline ( playerid , INFOBOX [ 4 ][ playerid ], 0 );
PlayerTextDrawFont ( playerid , INFOBOX [ 4 ][ playerid ], 4 );
INFOBOX [ 5 ][ playerid ] = CreatePlayerTextDraw ( playerid , 296.000000 , 277.760009 , "ZAMKNIJ" );
PlayerTextDrawLetterSize ( playerid , INFOBOX [ 5 ][ playerid ], 0.257999 , 1.226666 );
PlayerTextDrawAlignment ( playerid , INFOBOX [ 5 ][ playerid ], 1 );
PlayerTextDrawColor ( playerid , INFOBOX [ 5 ][ playerid ], - 1 );
PlayerTextDrawSetShadow ( playerid , INFOBOX [ 5 ][ playerid ], 0 );
PlayerTextDrawSetOutline ( playerid , INFOBOX [ 5 ][ playerid ], 1 );
PlayerTextDrawBackgroundColor ( playerid , INFOBOX [ 5 ][ playerid ], 51 );
PlayerTextDrawFont ( playerid , INFOBOX [ 5 ][ playerid ], 1 );
PlayerTextDrawSetProportional ( playerid , INFOBOX [ 5 ][ playerid ], 1 );
return 1 ;
}
Pawn
funkcja ShowInfoBox ( playerid )
{
PlayerTextDrawShow ( playerid , INFOBOX [ 0 ][ playerid ]);
PlayerTextDrawShow ( playerid , INFOBOX [ 1 ][ playerid ]);
PlayerTextDrawShow ( playerid , INFOBOX [ 2 ][ playerid ]);
PlayerTextDrawShow ( playerid , INFOBOX [ 3 ][ playerid ]);
PlayerTextDrawShow ( playerid , INFOBOX [ 4 ][ playerid ]);
PlayerTextDrawShow ( playerid , INFOBOX [ 5 ][ playerid ]);
return 1 ;
}
Pawn stock INFO ( playerid , nazwa [], tresc [], var[])
{
ShowInfoBox ( playerid );
SelectTextDraw ( playerid , 0xFF0000FF );
new str [ 256 ], str2 [ 500 ];
format ( str , 256 , nazwa ,var);
format ( str2 , 500 , tresc ,var);
PlayerTextDrawSetString ( playerid , INFOBOX [ 2 ][ playerid ], str );
PlayerTextDrawSetString ( playerid , INFOBOX [ 3 ][ playerid ], str2 );
return 1 ;
}
Pawn CMD : test ( playerid , params [])
{
INFO ( playerid , "Testowa Informacja" , "%s jest fajny" , GetPName ( playerid ));
return 1 ;
}
p.s. Funkcja zamiast forward+public (mam definicje i dzia?a).
Wysłany: 2014-04-21, 23:10
IgrexolonO
Wiek: 34 Na forum: 6809 dni Posty: 1386
Piwa : 1062
Wysłany: 2014-04-21, 23:50
JotP
Wiek: 26 Na forum: 4821 dni Posty: 217
Piwa : 1215
Aha dzi?ki !
[ Dodano : 2014-04-21, 23:56 ]
Dalej nie dzia?a
Wysłany: 2014-04-22, 00:14
IgrexolonO
Wiek: 34 Na forum: 6809 dni Posty: 1386
Piwa : 1062
Tagi: klikane
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: