Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to Show Level after Name (Beginner Tutorial)


Geotri
 Share

Recommended Posts

_**Client Side:**_

in modText(code)

Search

```
Public Sub DrawPlayerName(ByVal Index As Long)

```
Under

```
Dim Name As String

```
Paste

```
Dim LV As String

```
Search

```
TextY = ConvertMapY(GetPlayerY(Index) * PIC_Y) + Player(Index).YOffset - (DDSD_Character(GetPlayerSprite(Index)).lHeight / 4) + 16
```
Above

```
Call DrawText(TexthDC, TextX, TextY, Name, color)

```
Paste

```
'Get Level of Player set name string to name and level
LV = "[Lv." & str(GetPlayerLevel(Index)) & "]"
Name = Name & LV

```
this should give you something that looks like this above the players head:

"Name[Lv.100]"

Have Fun :)
Link to comment
Share on other sites

> it should be
>
> ```
> LV = "[LV." & val(GetPlayerLevel(Index)) & "]"
> Name = Name & LV
>
> ```
> not with "+"s instead of "&"s :P
>
> but other than that, nice little tutorial. keep them coming! :DD

Haha thanks for the support! :) and haha yeah idk what i was thinking my head must still be in java mode lol
Link to comment
Share on other sites

  • 4 months later...
I like the idea you are going for. I have two questions to ask about this though:

1\. What file is this in? here you say mod text. I have a file named fmod.dll , would that be the file to choose from?

2\. Does this work for 4.0 as well? This may be why the file names are a little different for me.
Link to comment
Share on other sites

  • 2 months later...
Hey sorry if this response took a while,

If you are using eclipse 4.0 you cannot edit the code unfortunately, because it is not open source. So for your other question DO NOT touch the .dll files they are extensions files and there is no need to touch them unless you want to get a million run-time errors

Hope this Helped :),

Geotri
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
 Share

×
×
  • Create New...