SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Archive

 
 
Thread Tools Display Modes
Old 10/01/2010, 07:27 PM   #1
zyzuinm
Little Clucker
 
Join Date: Oct 2009
Posts: 14
Reputation: 0
Default [HELP]TextDraw

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;
}
Po public OnPlayerSpawn(playerid) :

Code:
public OnPlayerSpawn(playerid)
{
  TextDrawShowForPlayer(playerid, Player_Stats[playerid]);
	return 1;
}
Dėkoju.
-Zefiro.
zyzuinm is offline  
Old 10/01/2010, 07:44 PM   #2
SiJ
High-roller
 
SiJ's Avatar
 
Join Date: Feb 2009
Location: Lithuania
Posts: 1,115
Reputation: 9
Default Re: [HELP]TextDraw

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..
__________________
Guess who's back...
SiJ is offline  
Old 11/01/2010, 06:33 PM   #3
AiVAMAN
Gangsta
 
AiVAMAN's Avatar
 
Join Date: Sep 2008
Location: Lietuva
Posts: 741
Reputation: 0
Default Re: [HELP]TextDraw

Quote:
Originally Posted by SiJ
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..
Skripto viršuje po visu #include jei neturi įdėk
pawn Code:
new Text:Player_Stats[MAX_PLAYERS];
o ne
new Text:PlayerStats[MAX_PLAYERS];

ir kaip sakė SiJ pakeisk new score[128]; į new score[256];
AiVAMAN is offline  
Old 11/01/2010, 07:06 PM   #4
zyzuinm
Little Clucker
 
Join Date: Oct 2009
Posts: 14
Reputation: 0
Default Re: [HELP]TextDraw

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;
}
zyzuinm is offline  
Old 12/01/2010, 12:57 PM   #5
AiVAMAN
Gangsta
 
AiVAMAN's Avatar
 
Join Date: Sep 2008
Location: Lietuva
Posts: 741
Reputation: 0
Default Re: [HELP]TextDraw

O daugiau turi TextDraw'ų?
AiVAMAN is offline  
Old 12/01/2010, 03:34 PM   #6
zyzuinm
Little Clucker
 
Join Date: Oct 2009
Posts: 14
Reputation: 0
Default Re: [HELP]TextDraw

Ne.
zyzuinm is offline  
Old 12/01/2010, 04:48 PM   #7
SiJ
High-roller
 
SiJ's Avatar
 
Join Date: Feb 2009
Location: Lithuania
Posts: 1,115
Reputation: 9
Default Re: [HELP]TextDraw

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
__________________
Guess who's back...
SiJ is offline  
Old 12/01/2010, 05:15 PM   #8
zyzuinm
Little Clucker
 
Join Date: Oct 2009
Posts: 14
Reputation: 0
Default Re: [HELP]TextDraw

Quote:
Originally Posted by SiJ
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
Na gal aš blogai paaiškinau. Tai įkelsiu nuotrauka.

zyzuinm is offline  
Old 12/01/2010, 05:17 PM   #9
SiJ
High-roller
 
SiJ's Avatar
 
Join Date: Feb 2009
Location: Lithuania
Posts: 1,115
Reputation: 9
Default Re: [HELP]TextDraw

Quote:
Originally Posted by Zefiro.
Quote:
Originally Posted by SiJ
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
Na gal aš blogai paaiškinau. Tai įkelsiu nuotrauka.

Na, kątik pastebėjau, jog kode kurį parašei pirmam poste nėra TextDrawCreate.. Pažiūrėk wiki: http://wiki.sa-mp.com/wiki/TextDrawCreate

Ir tu du kartus panaudoji TextDrawShowForPlayer.. Palik jį tik an OnPlayerSpawn callback'o
__________________
Guess who's back...
SiJ is offline  
Old 12/01/2010, 07:23 PM   #10
zyzuinm
Little Clucker
 
Join Date: Oct 2009
Posts: 14
Reputation: 0
Default Re: [HELP]TextDraw

Labai ačiū SiJ, visiškai pamiršau tokį dalyką kaip wiki!
zyzuinm is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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 03: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 06:50 PM
Textdraw overwrite textdraw fiordas Help Archive 9 10/02/2009 06:45 PM


All times are GMT. The time now is 02:27 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.