|
|
#1 |
|
Little Clucker
![]() Join Date: Oct 2009
Posts: 14
Reputation: 0
|
Sveiki visi! Iškilo man tokia problemėle kažkodėl man vietoje mano TD(TextDraw) rodo "TextDraw Information: ..." ir nesuprantu kodėl.
![]() Nu parodysiu, ką mėginau padaryti. Po public OnPlayerRequestSpawn(playerid) : Code:
public OnPlayerRequestSpawn(playerid)
{
new scores[128];
format(scores, sizeof(scores), "~y~Lit~g~huan~r~ian ~w~God~r~RolePlay ~w~|| ~r~/menu /info ~w~|| ~r~Taskai: ~w~%i",GetPlayerScore(playerid));
TextDrawSetString(Player_Stats[playerid], scores);
TextDrawUseBox(Player_Stats[playerid],1);
TextDrawBoxColor(Player_Stats[playerid],0x00000033);
TextDrawTextSize(Player_Stats[playerid],0.000000,933.000000);
TextDrawAlignment(Player_Stats[playerid],2);
TextDrawBackgroundColor(Player_Stats[playerid],0x000000ff);
TextDrawFont(Player_Stats[playerid],1);
TextDrawLetterSize(Player_Stats[playerid],0.499999,2.000000);
TextDrawColor(Player_Stats[playerid],0xffffffff);
TextDrawSetOutline(Player_Stats[playerid],1);
TextDrawSetProportional(Player_Stats[playerid],1);
TextDrawShowForPlayer(playerid, Player_Stats[playerid]);
return 1;
}
Code:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Player_Stats[playerid]);
return 1;
}
-Zefiro. |
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2009
Location: Lithuania
Posts: 1,117
Reputation: 9
|
Nematau tavo
new PlayerStats[MAX_PLAYERS]; Manau, jog turėtų būtų new Text:PlayerStats[MAX_PLAYERS]; ir string[128] manau, jog yra per mažai (nors neskaičiavau simbolių tavo TD'e).. pabandyk pakeist į 256 ar pan.. |
|
|
|
|
#3 | |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2008
Location: Lietuva
Posts: 741
Reputation: 0
|
Quote:
pawn Code:
new Text:PlayerStats[MAX_PLAYERS]; ![]() ir kaip sakė SiJ pakeisk new score[128]; į new score[256];
|
|
|
|
|
|
#4 |
|
Little Clucker
![]() Join Date: Oct 2009
Posts: 14
Reputation: 0
|
Na nežinau tas pats
![]() Code:
new Text:Player_Stats[MAX_PLAYERS]; Code:
public OnPlayerRequestSpawn(playerid)
{
new scores[256];
format(scores, sizeof(scores), "~y~Lit~g~huan~r~ian ~w~God ~r~RolePlay ~w~|| ~r~/menu /info ~w~|| ~r~Taskai: ~w~%i",GetPlayerScore(playerid));
TextDrawSetString(Player_Stats[playerid], scores);
TextDrawUseBox(Player_Stats[playerid],1);
TextDrawBoxColor(Player_Stats[playerid],0x00000033);
TextDrawTextSize(Player_Stats[playerid],0.000000,933.000000);
TextDrawAlignment(Player_Stats[playerid],2);
TextDrawBackgroundColor(Player_Stats[playerid],0x000000ff);
TextDrawFont(Player_Stats[playerid],1);
TextDrawLetterSize(Player_Stats[playerid],0.499999,2.000000);
TextDrawColor(Player_Stats[playerid],0xffffffff);
TextDrawSetOutline(Player_Stats[playerid],1);
TextDrawSetProportional(Player_Stats[playerid],1);
TextDrawShowForPlayer(playerid, Player_Stats[playerid]);
return 1;
}
Code:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Player_Stats[playerid]);
return 1;
}
|
|
|
|
|
#5 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2008
Location: Lietuva
Posts: 741
Reputation: 0
|
O daugiau turi TextDraw'ų?
|
|
|
|
|
#6 |
|
Little Clucker
![]() Join Date: Oct 2009
Posts: 14
Reputation: 0
|
Ne.
|
|
|
|
|
#7 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2009
Location: Lithuania
Posts: 1,117
Reputation: 9
|
Nesuprantu.. Pagal mane tokio dalyko, kaip "TextDraw Information: ..." negali iš niekur nieko rašyt.. Pabandyk savo scripte paieškot tokios eilutės.. "TextDraw Information" ar pan.. :S
|
|
|
|
|
#8 |
|
Little Clucker
![]() Join Date: Oct 2009
Posts: 14
Reputation: 0
|
|
|
|
|
|
#9 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2009
Location: Lithuania
Posts: 1,117
Reputation: 9
|
Quote:
Ir tu du kartus panaudoji TextDrawShowForPlayer.. Palik jį tik an OnPlayerSpawn callback'o |
|
|
|
|
|
#10 |
|
Little Clucker
![]() Join Date: Oct 2009
Posts: 14
Reputation: 0
|
Labai ačiū SiJ, visiškai pamiršau tokį dalyką kaip wiki!
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FilterScript] [FS] TextDraw editor 0.6 - Multiple textdraw support, for proffesional textdraws | Zamaroht | Filterscripts | 369 | 20/01/2013 02:46 PM |
| As I put this is TextDraw? | Jesus^ | Help Archive | 2 | 13/05/2010 06:49 PM |
| Help with textdraw | R3SpaWn3 | Help Archive | 3 | 12/05/2010 06:51 PM |
| [Textdraw] New Player steals the Textdraw | KingArthur | Help Archive | 15 | 28/02/2009 05:50 PM |
| Textdraw overwrite textdraw | fiordas | Help Archive | 9 | 10/02/2009 05:45 PM |