04.08.2010, 08:46
Anyone no know what problem is?
It's in OnPlayerSpawn.
Textdraw(); is at OnGameModeInit.
Код:
TextDrawShowForPlayer(playerid, FraksTextdraw[playerid]); TextDrawShowForPlayer(playerid, NimiTextdraw[playerid]);
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; }