Textdraw
#4

Anyone no know what problem is?

Код:
TextDrawShowForPlayer(playerid, FraksTextdraw[playerid]);
TextDrawShowForPlayer(playerid, NimiTextdraw[playerid]);
It's in OnPlayerSpawn.

Textdraw(); is at OnGameModeInit.

Код:
public Textdraw()
{
    for (new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        //----------------------------------------------------------------------
	    FraksTextdraw[i] = TextDrawCreate(53.000000, 298.000000, "Tsivliik");
		TextDrawBackgroundColor(FraksTextdraw[i], 255);
		TextDrawFont(FraksTextdraw[i], 1);
		TextDrawLetterSize(FraksTextdraw[i], 0.509999, 2.000000);
		TextDrawColor(FraksTextdraw[i], -1);
		TextDrawSetOutline(FraksTextdraw[i], 1);
		TextDrawSetProportional(FraksTextdraw[i], 1);
		//----------------------------------------------------------------------
		NimiTextdraw[i] = TextDrawCreate(26.000000, 318.000000, "----------");
		TextDrawBackgroundColor(NimiTextdraw[i], 255);
		TextDrawFont(NimiTextdraw[i], 1);
		TextDrawLetterSize(NimiTextdraw[i], 0.500000, 2.100000);
		TextDrawColor(NimiTextdraw[i], -1);
		TextDrawSetOutline(NimiTextdraw[i], 1);
		TextDrawSetProportional(NimiTextdraw[i], 1);
		//----------------------------------------------------------------------
		new name[128];
		new string[128];
		GetPlayerName(i, name, sizeof(name));
		if (name[i] == '_')
    	name[i] = ' ';
		format(string, sizeof(string), "%s", name);
		TextDrawSetString(NimiTextdraw[i], string);
		//----------------------------------------------------------------------
	}
	return 1;
}
Reply


Messages In This Thread
Textdraw - by Typhome - 04.08.2010, 07:29
Re: Textdraw - by Kar - 04.08.2010, 07:38
Re: Textdraw - by Typhome - 04.08.2010, 07:40
Re: Textdraw - by Typhome - 04.08.2010, 08:46
Re: Textdraw - by billiout - 04.08.2010, 08:51
Re: Textdraw - by Typhome - 04.08.2010, 08:52
Re: Textdraw - by [MWR]Blood - 04.08.2010, 08:57
Re: Textdraw - by Typhome - 04.08.2010, 08:58
Re: Textdraw - by [MWR]Blood - 04.08.2010, 09:01
Re: Textdraw - by Typhome - 04.08.2010, 09:05

Forum Jump:


Users browsing this thread: 2 Guest(s)