Jump to content
  • 0

pomoc help textraw


Guest [*LoNg*]LiFe

Dotaz

Guest [*LoNg*]LiFe

new Text:nwm[MAX_PLAYERS];

forward neco();

 

ongamemodeinit

 

SetTimer("neco",1000,1);
for(new i=0;i<= GetMaxPlayers();i++)
{
nwm[i] = TextDrawCreate(200,300, " ");
TextDrawLetterSize(nwm[i],0.4,1.4);//
TextDrawColor(nwm[i],0xAFAFAFAA);
TextDrawFont(nwm[i],3);
TextDrawSetOutline(nwm[i],1);
}

 

onplayerconect

 

TextDrawShowForPlayer(playerid,nwm[playerid]);

 

public

public neco()
{
for(new i=0;i<= GetMaxPlayers();i++)
{
new string[256];
format(string,256,"Dni : %d , Hodin : %d , Minut : %d",denn[i],hodinaa[i],minutka[i]);
TextDrawSetString(nwm[i],string);
}
}

 

problem je vtom ze ked pridem na server tak mi nejdu povolania a spawni pls help velmi

Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

  • 0

zkus :

 

public neco()
{
  for(new i=0;i<= GetMaxPlayers();i++)
  {
  new string[256];
  format(string,256,"Dni : %d , Hodin : %d , Minut : %d",denn[i],hodinaa[i],minutka[i]);
  TextDrawSetString(nwm[i],string);
  }
  return 1;
}

Link to comment
Share on other sites

  • 0
Guest [*LoNg*]LiFe

freewalle aj tak to nejde cele to mam takto cas to ukazuje ale vsetko ostatne nejde :o pomoc

 

 

new Text:nwm[MAX_PLAYERS];

forward neco();

SetTimer("neco",1000,1);

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

{

nwm = TextDrawCreate(200,300, " ");

TextDrawLetterSize(nwm,0.4,1.4);//

TextDrawColor(nwm,0xAFAFAFAA);

TextDrawFont(nwm,3);

TextDrawSetOutline(nwm,1);

}

SetTimer("minutaa",60000,1);

public minutaa()

{

for (new i = 0; i

{

if (IsPlayerConnected(i))

{

minutka ++;

 

if (minutka > 59)

{

minutka = 0;

hodinaa ++;

 

if (hodinaa > 23)

{

hodinaa = 0;

denn ++;

}

}

}

}

return 1;

}

public neco()

{

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

{

new string[256];

format(string,256,"Dni : %d , Hodin : %d , Minut : %d",denn,hodinaa,minutka);

TextDrawSetString(nwm,string);

}

return 1;

}

 

Link to comment
Share on other sites

  • 0

skus nvm ..neco sem tam upravil a pridal zbytek si uprav..textdraw normalne mel by se ukazat :d

 

#include

 

new Text:nwm;

new minutka;

new hodinaa;

new denn;

 

forward neco();

forward minutaa();

 

 

public OnPlayerConnect(playerid)

{

TextDrawShowForPlayer(playerid, nwm);

return 1;

}

public OnPlayerDisconnect(playerid)

{

TextDrawHideForPlayer(playerid, nwm);

return 1;

}

public OnGameModeInit()

{

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

{

nwm = TextDrawCreate(200,300, " ");

TextDrawLetterSize(nwm,0.4,1.4);//

TextDrawColor(nwm,0xAFAFAFAA);

TextDrawFont(nwm,3);

TextDrawSetOutline(nwm,1);

}

SetTimer("minutaa",60000,1);

SetTimer("neco",1000,1);

return 1;

}

public minutaa()

{

for (new i = 0; i

{

if (IsPlayerConnected(i))

{

minutka ++;

if (minutka > 59)

{

minutka = 0;

hodinaa ++;

if (hodinaa > 23)

{

hodinaa = 0;

denn ++;

}

}

}

}

return 1;

}

public neco()

{

new string[256];

format(string,256,"Dni : %d , Hodin : %d , Minut : %d",denn,hodinaa,minutka);

TextDrawSetString(nwm,string);

return 1;

}

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...