Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Frikkin PutVar hates me


zade_o
 Share

Recommended Posts

Ok, in my old Main.txt I have this:
```
Sub OnNewChar(Index, CharNum)
Call SetPlayerLevel(Index,5)
'Call SetPlayerPOINTS(Index,10)
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","Style","s","0")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","STR","xp","0")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","DEF","xp","0")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SPD","xp","0")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","MAG","xp","0")

Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SK1","sid","")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SK2","sid","")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SK3","sid","")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SK4","sid","")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SK5","sid","")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SK6","sid","")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SK7","sid","")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SK8","sid","")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SK9","sid","")
Call PutVar("Scripts\db\"&GetPlayerName(index)+".ini","SK10","sid","")
End Sub
```
Works like a charm. In my new Main.txt I'm trying this:
```
Sub OnNewChar(Index, CharNum)
Call PutVar("Scripts\CharDB\" & GetPlayerName(index) + ".ini","Stats","DodgeRate","1")
End Sub

```And nothing….
The CharDB folder exists so I have no clue what's going on. I basically copied and pasted the old one and made changes. Anyone know what's going on?
Link to comment
Share on other sites

Yeah i've tried reloading and restarting. Idk. Maybe i'll try a fresh copy.
Yeah i have the folder.
```

Call PutVar("Scripts\jew.ini","something","somethingagain","whattt")

```doesn't even work. Duck me right?

EDIT_
Fuck it I give up. Doesn't even work with a vanilla copy of EE.
Damnit.
Link to comment
Share on other sites

@[NW:

> [CUBE] Sean link=topic=39780.msg387735#msg387735 date=1236095189]
> Shouldn't "1") be 1) ?
>
> ```
> Call PutVar("\CharDB\" & GetPlayerName(index) & ".ini", "Stats", "DodgeRate", 1)
> ```Fixed for you.

Dd you try that? I tryed it and it works so…
Link to comment
Share on other sites

ohhh i swear to god. if scripting is off i'm going to kill myself.
-EDIT-
Son of a bitch. Well guys, it's been a good run….
*dies*
But seriously, thanks man. I can't believe that was it.
I must've gotten to used to source edits and completely forgot SS had that stupid stipulation...
seriously... when is scripting ever optional?....

We should remove that ;)
Link to comment
Share on other sites

@Ghost:

> ohhh i swear to god. if scripting is off i'm going to kill myself.
> -EDIT-
> Son of a Female Dog. Well guys, it's been a good run….
> *dies*
> But seriously, thanks man. I can't believe that was it.
> I must've gotten to used to source edits and completely forgot SS had that stupid stipulation...
> seriously... when is scripting ever optional?....
>
> We should remove that ;)

Lol that was fun.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...