Returning Server's name instead of Player name
Hey Guys, I am back after few months, I was working in PHP. I forgot allot of things in SMALL. Here I am trying to get the name of the player who has died. But There is some problem in it. In game, When I kill somebody or get killed I should get the message "somebody has been shot to death!", But in game I am getting "My-Server has been shot to death".
I dont know how to get the name properly. It is returning the server name. Code:
I have new ideas but stuck at the starting xD Sorry for asking such a newbie question :D Thnx:) |
Re: Returning Server's name instead of Player name
|
Re: Returning Server's name instead of Player name
Quote:
|
Re: Returning Server's name instead of Player name
Well read the example part in the link he posted and you'll know whats wrong
|
Re: Returning Server's name instead of Player name
First, DeathMsg doesnt have params , if you want to get killer/victim use read_data , see Connor's post.
|
Re: Returning Server's name instead of Player name
to get the name of the killing player, use read_data(1).
|
Re: Returning Server's name instead of Player name
Quote:
Give a man a fish . . . . |
Re: Returning Server's name instead of Player name
Quote:
|
Re: Returning Server's name instead of Player name
Quote:
|
Re: Returning Server's name instead of Player name
Quote:
About the question, use read_data(1) to get killer index so you can use get_user_name with that index. |
| All times are GMT -4. The time now is 05:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.