ID:148846
 
For some unknown reason, either i get runtime errors or my ds crashes, it says:

runtime error: type mismatch
proc name: Login (/mob/aggresive/Player/Login)
usr: Mrhat99au (/mob/aggresive/Player)
src: Mrhat99au (/mob/aggresive/Player)
call stack:
Mrhat99au (/mob/aggresive/Player): Login()
Mrhat99au (/mob/aggresive/Player): Read(players/m/mrhat99au.sav (/savefile))
Mrhat99au (/client): base LoadMob("Mrhat99au")
Mrhat99au (/client): base ChooseCharacter()
Mrhat99au (/client): New()

runtime error: type mismatch
proc name: Login (/mob/aggresive/Player/Login)
usr: Mrhat99au (/mob/aggresive/Player)
src: Mrhat99au (/mob/aggresive/Player)
call stack:
Mrhat99au (/mob/aggresive/Player): Login()

I dont know what is wrong

proc/base_ChooseCharacter()
// Switches the player to a choosing character mob.
// In case switching in middle of game, save previous mob.
base_SaveMob()

var/mob/ChoosingCharacter/chooser

// Do they have any characters to choose from?
var/list/names = base_CharacterNames()
if (!length(names))
// They must be a first time player.

// Okay let them create their first character.
chooser = new()
mob = chooser
return

// If only one character is allowed, try to just load it.
if (base_num_characters_allowed == 1)
base_LoadMob(names[1])
return

chooser = new()
mob = chooser
return

by the way i only use one charater at a time, if i cant fix this i might redo my saving system instead of using deadrons, and get someone experience off it.
ouch, that's one odd code. Or maybe I'm just odd. Who knows :)

Da_Odd_Rushyo
In response to Da_Rushyo
Da_Rushyo wrote:
ouch, that's one odd code. Or maybe I'm just odd. Who knows :)

Da_Odd_Rushyo

I figured it out, i was adding myself to a list so it created a runtime error. Eg, src+= Gm's
In response to Mrhat99au
fair nuff

Da_Posting_Rushyo