Warning: type read from file (/mob/player) is not defined.
is the prob what do i do to fix it
ID:261513
May 25 2002, 1:18 pm
|
|
In response to Malver
|
|
well i have loadza code but i think it might be this 1
mob/create_character //the default mob var/mob/character //later we'll be switching client to this Login() var/charactername = input("What is your name","Name",src.key) //you should know this.. switch(input("What Race Are You") in list("Top Class Saiyan","Low Class Saiyan","Half Breed")) if("Low Class Saiyan") //if they chose to be a monkey character = new /mob/Saiyan() //make the new character a monkey! if("Top Class Saiyan") //if they wanna be human, character = new /mob/Vegeta() //make them one! character.name = charactername //set the name src.client.mob = character //now, we change the player to this newly defined mob! del(src) //delete the old mob |
In response to Ssj3 gem
|
|
Ssj3 gem wrote:
well i have loadza code but i think it might be this 1 The error was <code>Warning: type read from file (/mob/player) is not defined.</code>. /mob/player isn't even mentioned in that above code. Try finding the code portion where it is included. - Malver |
In response to Malver
|
|
i tried untickin em 1 by 1 and it still went wrong and i checked and no codes have mob/player there all mob/character
|
In response to Ssj3 gem
|
|
Ssj3 gem wrote:
i tried untickin em 1 by 1 and it still went wrong and i checked and no codes have mob/player there all mob/character There can't be an error then if the error messages refers to /mob/player, and there is no /mob/player in your code. o.O - Malver |
In response to Malver
|
|
ok i fixed that error but now i got a new 1
when i start the game up it says create character and quit and u go on create caracter and u just go straight on to the map invisible :( the code is mob/create_character //the default mob var/mob/character //later we'll be switching client to this Login() var/charactername = input("What is your name","Name",src.key) //you should know this.. switch(input("What Race Are You") in list("Top Class Saiyan","Low Class Saiyan","Half Breed")) if("Low Class Saiyan") //if they chose to be a monkey character = new /mob/Saiyan() //make the new character a monkey! if("Top Class Saiyan") //if they wanna be human, character = new /mob/Vegeta() //make them one! character.name = charactername //set the name src.client.mob = character //now, we change the player to this newly defined mob! del(src) //delete the old mob |
In response to Ssj3 gem
|
|
Ssj3 gem wrote:
ok i fixed that error but now i got a new 1 If you can can throw in some periods, get rid of the dozens of gramatical and spelling errors, I will attempt to help you further. :) - Malver |
In response to Malver
|
|
when i start my game up, it has a list sayin "create character" and "quit", And When i choose "create new character" you just go straight on to the map invisible :(
the code is mob/create_character var/mob/character client to this Login() var/charactername = input("What is your name","Name",src.key) switch(input("What Race Are You") in list("Top Class Saiyan","Low Class Saiyan","Half Breed")) if("Low Class Saiyan") character = new /mob/Saiyan() //make the new character a monkey! if("Top Class Saiyan") character = new /mob/Vegeta() //make them one! character.name = charactername //set the name src.client.mob = character del(src) |
In response to Ssj3 gem
|
|
Ssj3 gem wrote:
when i start my game up, it has a list sayin "create character" and "quit", And When i choose "create new character" you just go straight on to the map invisible :( Thankyou. :) Your problem is you need to tell the game what icon the player is. E.g. <code> if("Top Class Saiyan") src.icon = 'saiyan.dmi' src.icon_state = "top_saiyan" </code> Or whatever icon file your characters are within. - Malver |
Post the rest of the code to us. With just that little tidbit of information, there isn't much we can do.
- Malver