Hi, Im trying make a command for a rolplayers to your's name dont appears, but I can't fix my errors :S
Help me please.

My commnands its very simple you write .Desconocido and your namemod = "Desconocido", well, this is simple.

When you want to meet with your friends or someone, you need to say "Me llamo {0}" and write your player's name, and this appear (namemod = null )

It's my problem, because Im looking that your name appears from 5 seconds while your friends meet you. After 5 seconds I liked that your name take "Desconocido".


This is the log of error:
Errors:
+ Customs/Desconocido.cs:
CS0115: Line 33: 'Server.Commands.Unknow.HandlesOnSpeech': no se encontró ni
ngún miembro adecuado que invalidar
CS0115: Line 35: 'Server.Commands.Unknow.OnSpeech(Server.SpeechEventArgs)':
no se encontró ningún miembro adecuado que invalidar
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


Thanks for help
 

Attachments

  • Desconocido.cs
    1.2 KB · Views: 4
Nevermind.

You need to add String.Format to your if statement like so.

Code:
			if ( (e.Speech.ToLower() == String.Format("Me llamo {0}", e.Mobile.Name)) && (e.Mobile.NameMod == "Desconocido") )
			{
 
I need help guys, I cant fix this error... :S


Errors:
+ Customs/Desconocido.cs:
CS0115: Line 33: 'Server.Commands.Unknow.HandlesOnSpeech': no se encontró ni
ngún miembro adecuado que invalidar
CS0115: Line 35: 'Server.Commands.Unknow.OnSpeech(Server.SpeechEventArgs)':
no se encontró ningún miembro adecuado que invalidar
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 
I'm back. I've been thinking and I need to know how to add a list of the players that I target and that only they can see my Rawname while others see "unknown"
 
@Lokai has an advanced skill system that includes a language skill. It's very possible you could use that concept for the name issue you're aiming for.
 
Back