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

Problems with PutVar in EE 2.7 *SOLVED


Nubbs
 Share

Recommended Posts

Im trying to make an .ini file using the Sub OnNewChar(index, charnum).. I know im either not using it in the right way or under the wrong sub maybe? Or maybe i missed something.. I dont know it just doesnt work and thats why im asking here :) by the way im doing this from my phone so sorry if it doesnt look pretty
```
Sub OnNewChar(index, CharNum)
Call PutVar("Scripts\Charextras\" & GetPlayerName(index), & ".ini", "SPRITE_INFO", "SPRITE_NUM_OG", GetPlayerSprite(index)
End Sub

```
Basically i want to have it make an .ini file with their name and "original" sprite number.. I thought by using this sub it would be the easiest/safest way to have the sprite number recorded for the first sprite a new character used.. I plan on using this number alot so i thought maybe this Sub (if im using it correctly) would save me from puting that variable in every case of every script..
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...