[Tutorial] Bad scripting habits - What not to do in a script
#5

Quote:
Originally Posted by Kwarde
View Post
It looks good, but there is a fail:

You did do new Path[25];. The length of the string is 28. That is one fail. + Playername length, which is 24. So it should be 28+MAX_PLAYER_NAME, which equals to 28+24, which equals to 52. So the Path should be 52 instead of 25 (lol). With what you now have, the string would be:
\scriptfiles\Accounts\Kwa (if my name was "Kwarde" in the game).
And you don't need the \scriptfiles\ part.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)