ID:735807
 
(See the best response by LordAndrew.)
Code:
mob/proc
MakeOwner()
src.verbs+=typesof(/mob/enforcer/verb)
src.verbs+=typesof(/mob/moderator/verb)
src.verbs+=typesof(/mob/admin/verb)
src.verbs+=typesof(/mob/owner/verb)
src.verbs+=typesof(/mob/special/verb)
src.gm=5
winset(usr, "admin_menu","parent=admin_menu;name=\"&admin\"")
winset(src, "admin_command_profile43", "parent=admin_menu;name=\"&Boot\";command=boot")
winset(src, "admin_command_profile42", "parent=admin_menu;name=\"&Strike\";command=strike")
winset(src, "admin_command_profile41", "parent=admin_menu;name=\"&Create\";command=create")
winset(src, "admin_command_profile1", "parent=admin_menu;name=\"&Disable Logins\";command=Disable-Logins")
winset(src, "admin_command_profile2", "parent=admin_menu;name=\"&Announce\";command=announce-in-game")
winset(src, "admin_command_profile3", "parent=admin_menu;name=\"&Check Certification\";command=check-certification")
winset(src, "admin_command_profile4", "parent=admin_menu;name=\"&Change Sword Cry\";command=change-sword-cry")
winset(src, "admin_command_profile5", "parent=admin_menu;name=\"&Change Sword Name\";command=change-sword-name")
winset(src, "admin_command_profile6", "parent=admin_menu;name=\"&Force New Name\";command=force-new-name")
winset(src, "admin_command_profile7", "parent=admin_menu;name=\"&Mute\";command=Mute")
winset(src, "admin_command_profile8", "parent=admin_menu;name=\"&Unmute\";command=unmute")
winset(src, "admin_command_profile9", "parent=admin_menu;name=\"&GM OOC\";command=gm-ooc")
winset(src, "admin_command_profile10", "parent=admin_menu;name=\"&World Save\";command=world-save")
winset(src, "admin_command_profile12", "parent=admin_menu;name=\"&AFK Check\";command=afk-check")
winset(src, "admin_command_profile13", "parent=admin_menu;name=\"&Certify\";command=Certify")
winset(src, "admin_command_profile14", "parent=admin_menu;name=\"&Rename\";command=rename")
winset(src, "admin_command_profile15", "parent=admin_menu;name=\"&Certify Block\";command=certify-block")
winset(src, "admin_command_profile16", "parent=admin_menu;name=\"&Tournament Start\";command=Tournament-start")
winset(src, "admin_command_profile17", "parent=admin_menu;name=\"&Tournament End\";command=tournament-end")
winset(src, "admin_command_profile18", "parent=admin_menu;name=\"&Narrate\";command=Narrate")
winset(src, "admin_command_profile19", "parent=admin_menu;name=\"&Force Step Towards\";command=Force-step-towards")
winset(src, "admin_command_profile20", "parent=admin_menu;name=\"&Say Spy\";command=ooc-spy")
winset(src, "admin_command_profile21", "parent=admin_menu;name=\"&Summon\";command=Summon")
winset(src, "admin_command_profile22", "parent=admin_menu;name=\"&Unsummon\";command=unsummon")
winset(src, "admin_command_profile23", "parent=admin_menu;name=\"&Teleport\";command=Teleport")
winset(src, "admin_command_profile24", "parent=admin_menu;name=\"&Create Dense Object\";command=create-dense-object")
winset(src, "admin_command_profile25", "parent=admin_menu;name=\"&Delete\";command=deletesomething")
winset(src, "admin_command_profile26", "parent=admin_menu;name=\"&Observe\";command=observe")
winset(src, "admin_command_profile27", "parent=admin_menu;name=\"&World Mute\";command=world-Mute")
winset(src, "admin_command_profile28", "parent=admin_menu;name=\"&World Unmute\";command=world-unmute")
winset(src, "admin_command_profile29", "parent=admin_menu;name=\"&Ban\";command=key")
winset(src, "admin_command_profile30", "parent=admin_menu;name=\"&Unban\";command=unban")
winset(src, "admin_command_profile31", "parent=admin_menu;name=\"&Change Icon\";command=change-icon")
winset(src, "admin_command_profile32", "parent=admin_menu;name=\"&Change Icon Object\";command=change-icon2")
winset(src, "admin_command_profile33", "parent=admin_menu;name=\"&Change Icon State\";command=change-icon-state")
winset(src, "admin_command_profile34", "parent=admin_menu;name=\"&Add Overlay\";command=add-overlay")
winset(src, "admin_command_profile35", "parent=admin_menu;name=\"&Remove Overlay\";command=remove-overlay")
winset(src, "admin_command_profile36", "parent=admin_menu;name=\"&Remove Overlays\";command=remove-overlays")
winset(src, "admin_command_profile37", "parent=admin_menu;name=\"&Edit Balance\";command=Edit-balance")
winset(src, "admin_command_profile38", "parent=admin_menu;name=\"&Make Admin\";command=Make-Admin")
winset(src, "admin_command_profile39", "parent=admin_menu;name=\"&Make Mod\";command=Make-Moderator")
winset(src, "admin_command_profile40", "parent=admin_menu;name=\"&Make Enforcer\";command=Make-Enforcer")
if(src.ckey=="Lilparuto113") src.verbs+=/mob/ABK/verb/AllowDisallow
if(src.ckey=="Lilparuto113"||src.ckey=="Talerain") src.oocname="Owner"
else src.oocname="Owner"


Problem description:
i keep getting a invalid expression error on the first winset code line HELP !!

Best response
Your wall of winset()s shouldn't be tabbed.
tabbed ?
so what do i need to do .. ?
In response to Lilparuto113
Highlight all of your winsets() in that procedure, hold shift, then press tab. It will tab them back over once to the left. It should compile correctly then.

Also I notice in the very first winset(), you've supplied usr. usr is not safe in procedures, you should be using src as the first argument. See this article for more information on that.
May i ask of your assistance with a few more things ?
In response to Lilparuto113
Go ahead.
ive been trying to give myself admin on a game for hours i just cant figure out how to do it .. its not as simple as putting my key in slots its much more complicated .. do you have a msn ?
ill pay you via paypal for your time btw
In response to Lilparuto113
[email protected]

From what I can tell by looking at your MakeOwner procedure, you're not using ckey correctly. ckey stands for canonical key, and is a lowercase and punctuation-less version of your key. So in this case, it would be "lilparuto113" instead of having the first L capitalized.
In response to Lilparuto113
Lilparuto113 wrote:
ive been trying to give myself admin on a game for hours i just cant figure out how to do it .. its not as simple as putting my key in slots its much more complicated .. do you have a msn ?

I think you should learn how to code first, instead of stealing other people's work.