ID:140472
 
Code:
        CreateF()
if(fexists("savefiles/[src.ckey].sav"))
switch(alert("Error| You already have a Savefile do you wish to continue? |rorrE","Creation Error","Yes","No"))
if("Yes")
var/savefile/F=new("savefiles/[src.ckey].sav") //This overwrites the file named yourkey.sav
F["last_x"] << src.x //This saves the X Position of the player
F["last_y"] << src.y //This saves the Y Position of the player
F["last_z"] << src.z //This saves the Z Position of the player
F["verbs"] << src.verbs //This saves the Verbs of the player
F["overlays"] << src.overlays //This saves the Overlays of the player
usr.icon= 'Katekyou Hitman Reborn Base.dmi'
src<<"<font size=2><font color=red>Game successfully Overwrote.</font color></font size>"
src.random = rand(1,2)
if(src.random == 1)
usr.Country= "Japan" //Here The Problem
usr.loc=locate(1,1,1)
if(src.random == 2)
usr.Country= "Italy" //Here The Problem. Its the same Problem on Both
usr.loc=locate(1,1,3)
Write(F) //This writes the above info.
if("No")
src.InitiateLogin()
return


Problem description:

Its comes error: usr.Country: undefinded var.
But i have coded the country var.

var/
Healt= 100
Stamina= 100
Will= 0
Family= "Secret"
Flame_Type="Secret"
Mission= "None"
Rank= "Student"
NPC= 0
Country= "" // The Country Var
Italy= 0
Japan= 0






Did you Try Putting?

mob/var
Country=""
In response to Revolution Gohan
:O Tnx it worked

I did't tryed that xD