Code:
var/list/squads = list()//The global list that houses all squads that have been created by players
//I've attempted adding some values to the list,
//such as var/list/squads = list("asd","dsa","DASD")
mob/var/InSquads = 0
mob/var/SquadsName = "None"
mob
proc
SquadsCheck()
if(src.InSquads&&squads.Find(src.SquadsName))
src.verbs += //Here, squad verbs would be given.
else if(src.InSquads)
//Here, considering the squad they were in doesn't exist any longer, they will be kicked out and considered squadless
else
src.verbs+=/mob/verb/Squads/Create_A_Squad
More information can be provided if necessary. The error I'm receiving is...
Error:
runtime error: Cannot execute null.Find().
proc name: SquadsCheck (/mob/proc/SquadsCheck)
usr: PLAYER (/mob)
src: PLAYER (/mob)
call stack:
PLAYER (/mob): SquadsCheck()
The line number it's referencing would be...
if(src.InSquads&&squads.Find(src.SquadName))