Jump to content

[WANTED]TUT na potřeby


Psychedelic

Recommended Posts

Čau hledal jsem všude ale nikde jsem nenašel tut na potřeby jen na TD ale já ani nwm na jakým principu by to mělo fungovat pokud by byl někdo té lásky a udělal ten TUT nebo ho někde našel a dal ho jsem bude mít u mě malý naprosto bezvíznamný plus ;)

Link to comment
Share on other sites

new potreba[MAX_PLAYERS];

 

forward uberanie(playerid);

forward text(playerid);

 

Text:potreba[MAX_PLAYERS];

 

 

for (new i = 0; i < MAX_PLAYERS; i++)

{

potreba = TextDrawCreate(0,430," text");

TextDrawLetterSize(potreba,0.300000,1.100000);

TextDrawAlignment(potreba,0);

TextDrawBackgroundColor(potreba, B_CERNA);

TextDrawFont(potreba,1);

TextDrawUseBox(potreba,1);

TextDrawBoxColor(potraba,B_CERNA);

TextDrawSetOutline(potraba,1);

TextDrawSetProportional(potreba,1);

TextDrawSetShadow(potreba,1);

}

 

public text(playerid) {

new string[256];

format(string,sizeof(string), " %d jedlo !",potreba[playerid]);

TextDrawSetString(potreba,string);

 

TextDrawHideForPlayer(playerid,potreba);

TextDrawShowForPlayer(playerid,potreba);

return true;

}

 

a už len uberanie jedla.... to sa my nechce písať snad si pochopil....

Link to comment
Share on other sites

ta čára tu někde je.. hledej

 

//kdybych ju našel dam link ;) (doufam že myslíš tu čáru jak je třeba HP nebo Armor)

 

jj tu myslím ok du hledat ale pak už jen jak udělat aby ubívala ale pod čím mám hledat čáru? :d

Link to comment
Share on other sites

pomozte mi.

 

mam to takto ten public

 

public text(playerid) {
new string[256];
format(string,sizeof(string), " %d jedlo !",jedlo[playerid]);
TextDrawSetString(jedlox,string);

TextDrawHideForPlayer(playerid,jedlox);
TextDrawShowForPlayer(playerid,jedlox);
return true;
}

 

 

A pise mi toto :

 

(1027) : error 035: argument type mismatch (argument 1)
(1029) : error 035: argument type mismatch (argument 2)
(1030) : error 035: argument type mismatch (argument 2)

 

 

 

Riadky :

 

TextDrawSetString(jedlox,string);

TextDrawHideForPlayer(playerid,jedlox);
TextDrawShowForPlayer(playerid,jedlox);

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...