Primo
So ,i've been tinkering this script for a custom string display on a player character, but as so i'm new to this i really dont know whats going on.
Heres the error on the console:
And this is my code:
Heres the error on the console:
Custom Systems/customname.cs:
CS0246: Line 23: namespace or type 'Target" could not be found.
(its on portuguese)
CS0246: Line 23: namespace or type 'Target" could not be found.
(its on portuguese)
And this is my code:
C#:
using System;
using System.Collections;
using System.IO;
using System.Text;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Commands;
namespace CustomName
{
class Program
{
public static void Initialize()
{
CommandSystem.Register("r", AccessLevel.Player, new CommandEventHandler(CustomName_OnCommand));
}
public static void CustomName_OnCommand(CommandEventArgs r)
{
SendLocalizedMessage("Which name you with to give :");
from.Target = new InternalTarget(this);
}
}
Last edited by a moderator: