Jump to content
  • 0

pomoc Zabil: 0 Umřel: 0


rEf

Dotaz

18 odpovědí na tuto otázku

Recommended Posts

  • 0

Čau jestli myslíš toto tak tu to máš

 

Do newů:

new zabiti[MAX_PLAYERS];

new umrti[MAX_PLAYERS];

 

Do ForWardů:

forward ScoreUpdate();

 

Do ModeInit:

SetTimer("ScoreUpdate", 1000, true);

 

Do OnPlayerDeath:

 

zabiti[killerid] ++;

umrti[playerid] ++;

 

 

Někam do modu:

public ScoreUpdate()

{

for ( new i;i<200;i++)

{

SetPlayerScore(i,GetPlayerMoney(i));

}

}

 

 

Doufám že toto chceš..Ukáže kolikrát chcíp a zabil

:rap:

Edit:To score nvm jestli tam patří bral sem si to s mího modu :d

 

Kdyby to nešlo napiš

Link to comment
Share on other sites

  • 0

 

Udělaš dve proměnné:

new team1sc; // sc jako skore
new team2sc;

 

potom udělaš textdraw a do onplayerdeath si daš přičitani tomu teamu to snad viš

 

a pak k tomu:

new string[128];
format(string,128,"Team1: %i",team1sc);
TextDrawSetString(textdrawprvnihoteamu,string);

 

EDIT: Dobře takže se tu rozepisuju jak k***t to sem mohl jit davno dělat neco jinyho

Link to comment
Share on other sites

  • 0

SetTimer("text", 2500, 1);

 

public text() {

new str[256];

format(str,sizeof(str)," Zabil: %d | Zomrel: %d",zabiti[playerid],umrti[playerid]);

TextDrawSetString(TEXTDRAW,str);

 

for(new i=0;i

TextDrawHideForPlayer(i,Textik);

TextDrawShowForPlayer(i,Textik);

}

return true;

}

Link to comment
Share on other sites

  • 0

Error:

 

E:\DOCUME~1\free\Plocha\cwmode.pwn(136) : error 017: undefined symbol "killerid"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

1 Error.

 

Řádek:

 

format(str,sizeof(str)," Zabil: %d / Umrel: %d",zabil[killerid],umrel[playerid]);

Link to comment
Share on other sites

  • 0
mas to v onplayerdeath?

ps.

lol?

format(str,sizeof(str)

?? čo je na tom ? šetrím RAM...

 

Error:

 

 

format(str,sizeof(str)," Zabil: %d / Umrel: %d",zabil[killerid],umrel[playerid]);

neviem odkial si prišiel na to hrubo červené !

ked ja som ti to pekne spravil...

Link to comment
Share on other sites

  • 0

E:\DOCUME~1\free\Plocha\cwmode.pwn(136) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

1 Error.

 

Hm :d Když nikomu z vás pošlu pwn uděláte mi to? že to bude rovnou počítat i v textdrawu? ...

Link to comment
Share on other sites

  • 0

Davidek ide ale bude toto počítat? :d

 

nurofscore = TextDrawCreate(1,438,"     ~g~Home ~w~0:0 ~r~Away ~w~/~y~ Celkem: ~w~0:0~w~ / ~g~Zabil: ~w~%d ~w~/ ~r~Umrel: ~w~%d ~w~/ ~w~Ratio: 1.00 ~w~/ www.mode-by-nurofen-and-rEf.cz");

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...