ID:145503
 
Code:
var/savefile/F = new("Save/[mob.key]/[mob.ckey]")
usr << "Save/[mob.key]/[mob.ckey]"
mob.Read(F) // This reads the file!
if(mob.MenuSpot == "Title/New/1" && F["Slot 1"] == 0) mob.NewChar(mob,1)


Problem description:


The if statement isn't going through. "Slot 1" presents the File, (3 files), if it is 1, then the file is taken and can't be over written, if 0 the client starts a new game. I can't solve, for the life of me, ow to make that if statement go through. >_<
Try putting brackets around the (x==y) statements. It may be an order-of-operations problem.

Also, use !F["Slot 1"], not F["Slot 1"]==0
In response to Jp
uhm... There are no X,y statments in there. :P

And I've tried !F["Slot 1"] still doesn't work. =\
In response to Mechanios
He meant the 'x' side of the operator, and the 'y' side of the operator. (Left and right. :P)

It should look like this according to Jp:
if((mob.MenuSpot == "Title/New/1") && !F["Slot 1"]) mob.NewChar(mob,1)
In response to Mega fart cannon
Ohhh. Duh. Sorry, Jp. =S