zade_o Posted March 2, 2009 Author Share Posted March 2, 2009 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 More sharing options...
Warconn Posted March 2, 2009 Share Posted March 2, 2009 it should be``` Call PutVar("Scripts\CharDB\" & GetPlayerName(index) & ".ini","Stats","DodgeRate","1")```im pretty sure Link to comment Share on other sites More sharing options...
zade_o Posted March 2, 2009 Author Share Posted March 2, 2009 You mean with the + being an &? I'm pretty sure I tried that and it didn't work.But the first one works and the first one uses the + so I don't think that matters. Link to comment Share on other sites More sharing options...
Warconn Posted March 2, 2009 Share Posted March 2, 2009 hmm, then im not sure, its been a while since i last scripted… Link to comment Share on other sites More sharing options...
zade_o Posted March 3, 2009 Author Share Posted March 3, 2009 Anybody know what's wrong? Link to comment Share on other sites More sharing options...
cheatking Posted March 3, 2009 Share Posted March 3, 2009 Shouldn't "1") be 1) ?``` Call PutVar("\CharDB\" & GetPlayerName(index) & ".ini", "Stats", "DodgeRate", 1)```Fixed for you. Link to comment Share on other sites More sharing options...
zade_o Posted March 3, 2009 Author Share Posted March 3, 2009 I mean I can try but idk if it'll work. It should work either way. I'll give it a try real fast.EDIT – Nope. still nothin. Link to comment Share on other sites More sharing options...
kris_hole Posted March 3, 2009 Share Posted March 3, 2009 is should be &'s did you try it with &'s? Link to comment Share on other sites More sharing options...
cheatking Posted March 3, 2009 Share Posted March 3, 2009 @Ghost:> I mean I can try but idk if it'll work. It should work either way. I'll give it a try real fast.> > EDIT – Nope. still nothin.It worked for me. Did you make the folder? Link to comment Share on other sites More sharing options...
Soljah Posted March 3, 2009 Share Posted March 3, 2009 Ghost, you sure your restarting your server when you are placing the script in? (please don't let it be a silly error like that :P) Link to comment Share on other sites More sharing options...
zade_o Posted March 3, 2009 Author Share Posted March 3, 2009 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 More sharing options...
cheatking Posted March 3, 2009 Share Posted March 3, 2009 @[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 More sharing options...
zade_o Posted March 3, 2009 Author Share Posted March 3, 2009 stilllll nothing. Link to comment Share on other sites More sharing options...
Warconn Posted March 3, 2009 Share Posted March 3, 2009 i had this problem a while back, which i never got resolved, i just switched to source… Link to comment Share on other sites More sharing options...
cheatking Posted March 3, 2009 Share Posted March 3, 2009 Are you making a NEW character?Using 2.7?Have scripiong on? Link to comment Share on other sites More sharing options...
zade_o Posted March 3, 2009 Author Share Posted March 3, 2009 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 More sharing options...
Skillzalot Posted March 3, 2009 Share Posted March 3, 2009 Thats all it takes sometimes. Is a stupid little thing :p Link to comment Share on other sites More sharing options...
kris_hole Posted March 4, 2009 Share Posted March 4, 2009 @Ghost:> seriously… when is scripting ever optional?....errr. i would say probably in retarded online :P Link to comment Share on other sites More sharing options...
cheatking Posted March 4, 2009 Share Posted March 4, 2009 @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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now