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

Help with error


Rydo
 Share

Recommended Posts

Hey, I basically tried adding a friend sytem to my project and it seemed to work fine, I tested it and it worked, but when I try to compile it, this happens.
![](http://i49.tinypic.com/2d9veqf.png)
I have no idea what the problem could be, also this is the server side code, nothing wrong at all with the client side.
Link to comment
Share on other sites

That's TempPlayerRec ;] It has to be in PlayerRec

To clarify, TempPlayerRec(TempPlayer()) is used for temporary storage, as the name suggests. Once a player logs out the information is gone. PlayerRec(Player(), as you used to get the error) is for persistent storage of data that gets saved every time a player logs off, or if the data gets saved inbetween
Link to comment
Share on other sites

I think that did the trick, And if you dont mind, could you help me with another thing please?. Basically I also added a house system (lmao) and I got this error. ![](http://i45.tinypic.com/nnwbgk.png)
Also when i test it, I get this runtime error, and when I press "Debug" it shows this line of code. ![](http://i50.tinypic.com/1055ti1.png)
Link to comment
Share on other sites

Ah, you added the system from an older Eclipse version didn't you? Sadly the .Char variable isn't used in ED, it's TempPlayer(Index).CurChar

Not sure what that second yellow line is supposed to display, you have no error message on it nor can I see the values :]
Link to comment
Share on other sites

Change the whole Player(Index).Char into TempPlayer(Index).CurChar. ;] I wrote that system in a way that's different from the original way it was done, because I felt like doing it on my own instead of copy/pasting stuff. Haha, so it's a tad different from other stuff.
Link to comment
Share on other sites

Ahh, so you made ED? :D. Big fan, I love everything about ED So I'm currently using it to make a Pokémon MMO (The one where you play as Pokemon ;] ) With a team of staff of course, But nobody is awake, So im just working away ;P. Also I replaced that and now it says Variable Not Defined for (Attacker) in the code >MapNpc(mapnum).Npc(mapNpcNum).x = GetPlayerX(attacker)
Link to comment
Share on other sites

Well I give you props for trying. (And making a backup - That is a good habit to have.)

It appears you are trying to include a house system and a friends list? I would take it 1 at a time and once you are sure it works then move on.
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...