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

App.Path


teh jimpie
 Share

Recommended Posts

```
Private Sub testlabel_Click()
testlabel.Caption = App.Path & "\Accounts" & GetPlayerLogin(MyIndex) & "char1.ini", "SPT", "head"
testlabel2.Caption = App.Path & "News.ini", "COLOR", "Blue"
End Sub
```
This code above gives an error. I'm using ES 1.2
I hope someone can help me.
Link to comment
Share on other sites

@teh:

> ```
> Private Sub testlabel_Click()
> testlabel.Caption = App.Path & "\Accounts" & GetPlayerLogin(MyIndex) & "char1.ini", "SPT", "head"
> testlabel2.Caption = App.Path & "News.ini", "COLOR", "Blue"
> End Sub
> ```
> This code above gives an error. I'm using ES 1.2
> I hope someone can help me.

You have to overwrite the ' \ ' character, I guess…
And use GetVar, yeah.

GetVar( App.Path & "\Accounts\" & GetPlayerLogin(MyIndex) & "\char1.ini", "SPT", "head")

Again in the other side..

Anyway, where do you recall that "GetVar"?
From Server or Client side? .. I am not sure if Client of ES has it. I dunno, I repeat. Maybe you have to add the Sub to Client.. In that case copy and paste it from Server side.
Link to comment
Share on other sites

@Robin:

> You need to have that kind of shit serverside.

How do I do that? Just adding that code's somewhere?
Am I then also allowed to use that kind of code's in the client? like:

> Private Sub testlabel_Click()
> testlabel.Caption = GetPlayerSkillLevel(Index, "MN")
> End Sub
Link to comment
Share on other sites

Remember you always have to code always some function to work on similar data. So, start from Client and recall the sub "SendData", go in Server and stuck the signal (modHandleData), resend an answer to the Client with the right data. It's very difficult, take your time. You will get it. :D

*cought* or contact me by PM *cought*
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...