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

Get someone elses name


ploxie
 Share

Recommended Posts

would index really work? as index is to do with the person DOING the action. aka if I activated an event I could use index. If I used that snippet of code it would return my name not the other persons name. :rolleyes:

EDIT
I just looked it up in the source and it looks like I was right. Ths server uses the index system of finding the players number. so it would be getplayername(1) if the player was in index slot 1\. To find there index slot you would need to use a loop.

Do While(x > MAX_PLAYERS)
    getplayerindex(x)
Loop
Link to comment
Share on other sites

Use call SendData then server side use something like this:

```
Call MsgBox(GetPlayerName(Index) & "wants to trade with you. Do you wish to accept?" vbYesNo, Nothing)

```
Not sure how to find out what they answered though.
Link to comment
Share on other sites

  • 2 weeks later...
Client side index use: Myindex
Server Side: Index

For the response to the msgbox above, you set the value to a variable (in the example above, its not even being used), then depending on the variable you get the response. So if the value = 0, or 1 you send or don't do anything. Anyways you get the picture.
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...