Mivčo 90 Odesláno: 24. Leden, 2013 Share Odesláno: 24. Leden, 2013 Zdravím Help #include new Text:Textdraw0; public OnFilterScriptInit() { Textdraw0 = TextDrawCreate(170.0, 119.0, "Vytajte na našom servery"); TextDrawCreate(314.0, 146.0, "By Мирослав"); TextDrawCreate(150.0, 185.0, "Navstivte nas Web: ~r~~h~~h~www.game4you.jecool.net"); TextDrawCreate(227.0, 267.0, "Prihlaste se: ~y~/login"); TextDrawCreate(297.0, 290.0, "Alebo"); TextDrawCreate(205.0, 313.0, "Registrujte sa: ~y~/register"); TextDrawCreate(103.0, 426.0, "~w~/help ~y~~h~- ~w~/info ~y~~h~- ~w~/animace ~y~~h~- ~w~/pravidla"); return 1; } public OnFilterScriptExit() { TextDrawHideForAll(Textdraw0); TextDrawDestroy(Textdraw0); return 1; } public OnPlayerRequestClass(playerid, classid) { TextDrawShowForPlayer(playerid, Textdraw0); return 1; } public OnPlayerSpawn(playerid) { TextDrawShowForPlayer(playerid, Textdraw0); return 1; } Ked dám toto na server tak mi to tam ukaže iba toto: Textdraw0 = TextDrawCreate(170.0, 119.0, "Vytajte na našom servery"); Link to comment Share on other sites More sharing options...
0 Hrb™ 48 Odesláno: 24. Leden, 2013 Share Odesláno: 24. Leden, 2013 Však tak to má být. musel by jsi to napsat vše do jednoho s "\n" nebo si udělat pro každý nový textdraw Edit: Děkuji qwerovi za opravu. Spletl jsem se. U TextDrawu se nepoužívá "\n" ale "~n~" Link to comment Share on other sites More sharing options...
0 Mivčo 90 Odesláno: 25. Leden, 2013 Author Share Odesláno: 25. Leden, 2013 Nejde mi to spravit ****! Link to comment Share on other sites More sharing options...
0 Fuggy 2 Odesláno: 25. Leden, 2013 Share Odesláno: 25. Leden, 2013 poradsi ? kdes vzal Textdrawe Link to comment Share on other sites More sharing options...
0 undertaker 10 Odesláno: 25. Leden, 2013 Share Odesláno: 25. Leden, 2013 1.horší možnost: pro každý "řádek" udělej nový textdraw #include new Text:Textdraw0; new Text:Textdraw1; // atd.... public OnFilterScriptInit() { Textdraw0 = TextDrawCreate(170.0, 119.0, "Vytajte na našom servery"); Textdraw1 = TextDrawCreate(314.0, 146.0, "By Мирослав"); // atd... textdraw2 = TextDrawCreate(150.0, 185.0, "Navstivte nas Web: ~r~~h~~h~www.game4you.jecool.net"); TextDrawCreate(227.0, 267.0, "Prihlaste se: ~y~/login"); TextDrawCreate(297.0, 290.0, "Alebo"); TextDrawCreate(205.0, 313.0, "Registrujte sa: ~y~/register"); TextDrawCreate(103.0, 426.0, "~w~/help ~y~~h~- ~w~/info ~y~~h~- ~w~/animace ~y~~h~- ~w~/pravidla"); return 1; } public OnFilterScriptExit() { TextDrawHideForAll(Textdraw0); TextDrawDestroy(Textdraw0); // atd... return 1; } public OnPlayerRequestClass(playerid, classid) { TextDrawShowForPlayer(playerid, Textdraw0); //atd.. return 1; } public OnPlayerSpawn(playerid) { TextDrawShowForPlayer(playerid, Textdraw0); //atd... return 1; } 2. napsat všechny "řádky" do jednoho textdrawu jak ti už radili výše takže nějak takto: Textdraw0 = TextDrawCreate(170.0, 119.0, "Hello ~n~ and ~n~ bye"); Link to comment Share on other sites More sharing options...
0 Michal Kuřátko (_Michael_) 49 Odesláno: 25. Leden, 2013 Share Odesláno: 25. Leden, 2013 Deleted Link to comment Share on other sites More sharing options...
0 Mivčo 90 Odesláno: 25. Leden, 2013 Author Share Odesláno: 25. Leden, 2013 undertaker diki pomohlo mi to Možete Lock nuly Link to comment Share on other sites More sharing options...
Dotaz
Mivčo 90
Zdravím
Help
#include
new Text:Textdraw0;
public OnFilterScriptInit()
{
Textdraw0 = TextDrawCreate(170.0, 119.0, "Vytajte na našom servery");
TextDrawCreate(314.0, 146.0, "By Мирослав");
TextDrawCreate(150.0, 185.0, "Navstivte nas Web: ~r~~h~~h~www.game4you.jecool.net");
TextDrawCreate(227.0, 267.0, "Prihlaste se: ~y~/login");
TextDrawCreate(297.0, 290.0, "Alebo");
TextDrawCreate(205.0, 313.0, "Registrujte sa: ~y~/register");
TextDrawCreate(103.0, 426.0, "~w~/help ~y~~h~- ~w~/info ~y~~h~- ~w~/animace ~y~~h~- ~w~/pravidla");
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}
Ked dám toto na server tak mi to tam ukaže iba toto:
Link to comment
Share on other sites
6 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now