[Ajuda] Score em Texdraw
#6

Quote:
Originally Posted by @LucasVinicius
Посмотреть сообщение
Код:
new Text:Textdraw4[MAX_PLAYERS];
Код:
public OnPlayerDeath(playerid, killerid, reason) {
	SetPlayerScore(playerid, GetPlayerScore(killerid)+ 1);
	new str[100];
	
	format(str, sizeof(str),"Score: %d", GetPlayerScore(killerid));
	TextDrawSetString(Scores[killerid], str);
	TextDrawShowForPlayer(killerid, Scores[killerid]);
	return 1;
}
Код:
public OnGameModeInit() {
       Textdraw4 = TextDrawCreate(407.000000, 433.000000, "     ");
	TextDrawBackgroundColor(Textdraw4, 421075455);
	TextDrawFont(Textdraw4, 1);
	TextDrawLetterSize(Textdraw4, 0.230000, 1.400000);
	TextDrawColor(Textdraw4, -1);
	TextDrawSetOutline(Textdraw4, 1);
	TextDrawSetProportional(Textdraw4, 1);
        return 1;
}
Код:
public OnPlayerSpawn(playerid) {
   TextDrawShowForPlayer(playerid, Textdraw4);
   return 1;
}
PHP код:
Pronto,pode testar que vai funcionar (: 
pqp --'

cara vocк definiu a text em [MAX_PLAYERS] e ta passando sem o parametro ? --'

Olha seu topo e o resto do code.
Reply


Messages In This Thread
Score em Texdraw - by Mteck - 28.01.2013, 20:58
Re: Score em Texdraw - by mau.tito - 28.01.2013, 21:00
Re: Score em Texdraw - by Maklister - 28.01.2013, 21:02
Re: Score em Texdraw - by Mteck - 28.01.2013, 21:07
Re: Score em Texdraw - by @LucasVinicius - 28.01.2013, 23:56
Re: Score em Texdraw - by Maklister - 29.01.2013, 00:07
Re: Score em Texdraw - by @LucasVinicius - 29.01.2013, 00:12
Re: Score em Texdraw - by Mteck - 29.01.2013, 01:22
Re: Score em Texdraw - by Maklister - 29.01.2013, 01:51
Re: Score em Texdraw - by Mteck - 29.01.2013, 07:26

Forum Jump:


Users browsing this thread: 1 Guest(s)