[HELP]Textdraw
#1

How to make Textdraw show player money and level ?
Reply
#2

Explain better please.
Reply
#3

Depends on what you want to do and functions to get player's money and level.
Reply
#4

Textdraw showplayerstat I want exam.
Reply
#5

use TextDrawSetString
Reply
#6

how to use
I want to create textdraw show player level plese exam for me please.
Reply
#7

Top:

Код:
forward StatsBox();
Код:
public StatsBox()
{
  new string[128];
  for(new i=0;i<MAX_PLAYERS;i++)
  {
    if (IsPlayerConnected(i))
    {
      format(string, sizeof(string), "Money: %i" , GetPlayerMoney(i));
      TextDrawSetString(YourTextDrawName[i],string);
    }
  }
  return 1;
}
And after OnGameModeinit add timer

Код:
SetTimer("StatsBox",500, 1);
Reply
#8

Thx
Reply
#9

No Problem
Reply
#10

Problem help me again

D:\GTA\gamemodes\GTA.pwn(34465) : error 017: undefined symbol "TextDrawStat"
D:\GTA\gamemodes\GTA.pwn(34465) : warning 215: expression has no effect
D:\GTA\gamemodes\GTA.pwn(34465) : error 001: expected token: ";", but found "]"
D:\GTA\gamemodes\GTA.pwn(34465) : error 029: invalid expression, assumed zero
D:\GTA\gamemodes\GTA.pwn(34465) : fatal error 107: too many error messages on one line


And I want to show This under player heath bar how to do.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)