ploxie Posted May 7, 2009 Author Share Posted May 7, 2009 how to get someone elses name…Like:"playername" wants you to trade Link to comment Share on other sites More sharing options...
unnown Posted May 7, 2009 Share Posted May 7, 2009 uhh getplayername(index) Link to comment Share on other sites More sharing options...
Fred Posted May 7, 2009 Share Posted May 7, 2009 call playermsg(index, GetPlayerName(index) & " wants to trade you", 10) Link to comment Share on other sites More sharing options...
zidsal Posted May 7, 2009 Share Posted May 7, 2009 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:EDITI 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 More sharing options...
ploxie Posted May 8, 2009 Author Share Posted May 8, 2009 No I mean like thisIf someone send a trade request to me then there will pop up a Picbox with the trade request, accept button and a Decline button Link to comment Share on other sites More sharing options...
Akselj Posted May 8, 2009 Share Posted May 8, 2009 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 More sharing options...
tiggilyboo Posted May 18, 2009 Share Posted May 18, 2009 Client side index use: MyindexServer Side: IndexFor 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 More sharing options...
vrage Posted May 18, 2009 Share Posted May 18, 2009 findplayer(indexnumber) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now