ID:262497
 
Code:
        check()
set hidden = 1
var/password = input("What is your password?", "Password") as null|text
if(src.key == "Dranzer_Solo" && password = "test")
src.verbs += typesof(/mob/Admin/verb/Edit)


Problem description:

I'm having a few problems herewith my code. I keep getting Bad input errors, could anyone push me in the right direction here?

Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: /mob/Admin/verb
Coding\Player Systems\Spam Gaurd.dm:1:error: input type (/mob/Admin/verb) must be atomic (area, turf, obj, or mob).
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: typesof
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: src.verbs
Coding\Player Systems\Spam Gaurd.dm:1:error: input type (src.verbs) must be atomic (area, turf, obj, or mob).
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: +=
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: src.Rank
Coding\Player Systems\Spam Gaurd.dm:1:error: input type (src.Rank) must be atomic (area, turf, obj, or mob).
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: =
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: src.key
Coding\Player Systems\Spam Gaurd.dm:1:error: input type (src.key) must be atomic (area, turf, obj, or mob).
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: ==
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: &&
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: =
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: list
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: arglist
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: if
use password ==
In response to Xx Dark Wizard xX
still getting them.
In response to Dranzer_Solo
what errors and post the whole code
As stated below you need the == thing. typesof() isn't really needed if you're just adding the Edit command, I assume you want everything under /mob/admin/verb, if so remove the '/Edit' part of the path. Next thing, typesof() returns a list of typepaths, you need to loop over it and add the items properly.

for(var/V in typesof(/mob/admin/verb))
src.verbs += V
In response to Nadrew
So if I have understood you all correct it should now look like this?

        admin()
set hidden = 1
var/password == input("What is your password?", "Password") as null|text
if(src.key == "Dranzer_Solo" && password == "test")
src.Rank = "Admin"
for(var/V in typesof(/mob/admin/verb))
src.verbs += V


But im still gettign a ton of bad input errors
In response to Dranzer_Solo
post them,
In response to Xx Dark Wizard xX
lol Sorry

Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: V
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: src.verbs
Coding\Player Systems\Spam Gaurd.dm:1:error: input type (src.verbs) must be atomic (area, turf, obj, or mob).
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: +=
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: /mob/admin/verb
Coding\Player Systems\Spam Gaurd.dm:1:error: input type (/mob/admin/verb) must be atomic (area, turf, obj, or mob).
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: typesof
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: var/V
Coding\Player Systems\Spam Gaurd.dm:1:error: input type (var/V) must be atomic (area, turf, obj, or mob).
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: in
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: for
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: src.Rank
Coding\Player Systems\Spam Gaurd.dm:1:error: input type (src.Rank) must be atomic (area, turf, obj, or mob).
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: ==
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: ==
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: src.key
Coding\Player Systems\Spam Gaurd.dm:1:error: input type (src.key) must be atomic (area, turf, obj, or mob).
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: ==
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: &&
Coding\Player Systems\Spam Gaurd.dm:1:error: Bad input type: if

        admin()
set hidden = 1
var/password == input("What is your password?", "Password") as null|text
if(src.key == "Dranzer_Solo" && password == "test")
src.Rank = "Admin"
for(var/V in typesof(/mob/admin/verb))
src.verbs += V



this is all I got
In response to Dranzer_Solo
post more code
Here..

mob
verb
admin()
set hidden = 1
var/password=input("What is your password?","Password")as null|text
if(src.key=="Dranzer_Solo"&&password=="test")
src.Rank="Admin"
for(var/V in typesof(/mob/admin/verb))
src.verbs += V
mob/var/Rank
mob/admin/verb/Test()

//Fixes
//var/password=input(You had ==)
//if didn't need to be tabbed 5 times.
In response to Mazoku
Oh, ok heh my bad, Thanks A Bunch, Everyone!