function serverCmdstuff(%this) ///stuff{ findClientByName(%this).clanPrefix = "ClanTagHere";}
Because %this isn't a name, it's the client. Remove the findClientByName around it and it will work. You REALLY have to stop rushing into things, dude.
Hey Why wont this one work ?Code: [Select]function serverCmdstuff(%this) ///stuff{ findClientByName(%this).clanPrefix = "ClanTagHere";} I just made it fast to check if it worked and it didn't
function serverCmdstuff(%name){ findClientbyName(%name).clanPrefix=("ClanTagHere");}
should be Code: [Select]function serverCmdstuff(%name){ findClientbyName(%name).clanPrefix=("ClanTagHere");}
function serverCmdstuff(%client){ %client.clanPrefix="ClanTagHere";}
should beCode: [Select]function serverCmdstuff(%client){ %client.clanPrefix="ClanTagHere";} changed it to %client to make the variable more.. realistic.%name would not actually be the name to my knowledge. %client is findclientbyname(yourname).getID();and i don't think 3 slashes should screw anything up. seeing // should cancel out anything after that point.
%name would have been /stuff playernamehere for it to change there tag.
Code: [Select]function serverCmdstuff(%client,%name){ if(!isObject(findClientByName(%name)) return messageClient(%client,'',"Could not find client '" @ %name @ "'."); findClientbyName(%name).clanPrefix="ClanTagHere";}
function serverCmdstuff(%client,%name){ if(!isObject(findClientByName(%name)) return messageClient(%client,'',"Could not find client '" @ %name @ "'."); findClientbyName(%name).clanPrefix="ClanTagHere";}