Rydo Posted July 4, 2012 Author Share Posted July 4, 2012 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 More sharing options...
Stein Posted July 4, 2012 Share Posted July 4, 2012 Are you sure you did it all correctly? Because it seems that there is no Friends() entry in your PlayerRec. Link to comment Share on other sites More sharing options...
Rydo Posted July 4, 2012 Author Share Posted July 4, 2012 ![](http://i49.tinypic.com/sdiaoi.png) Link to comment Share on other sites More sharing options...
Stein Posted July 4, 2012 Share Posted July 4, 2012 That's TempPlayerRec ;] It has to be in PlayerRecTo 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 More sharing options...
Rydo Posted July 4, 2012 Author Share Posted July 4, 2012 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 More sharing options...
Stein Posted July 4, 2012 Share Posted July 4, 2012 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).CurCharNot 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 More sharing options...
Rydo Posted July 4, 2012 Author Share Posted July 4, 2012 So I change .Char with TempPlayer(Index).CurChar? Link to comment Share on other sites More sharing options...
Stein Posted July 4, 2012 Share Posted July 4, 2012 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 More sharing options...
Rydo Posted July 4, 2012 Author Share Posted July 4, 2012 I see, Ok so that worked, but now a new error -.- :confused:Â ![](http://i46.tinypic.com/b7fj2b.png) Link to comment Share on other sites More sharing options...
Stein Posted July 4, 2012 Share Posted July 4, 2012 Haha, that should be MapNPC(Mapnum).NPC(MapNPCNum).x :] Link to comment Share on other sites More sharing options...
Rydo Posted July 4, 2012 Author Share Posted July 4, 2012 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 More sharing options...
Stein Posted July 4, 2012 Share Posted July 4, 2012 I just looked at that sub completely, and what the hell are you trying to do there? xD That's the NPC Spawn sub, not attack.. So I don't get what you're trying to edit in there? Link to comment Share on other sites More sharing options...
Rydo Posted July 4, 2012 Author Share Posted July 4, 2012 I actually have no idea, I guess i read the tutorial wrong?. So I guess that part of code goes in ModCombat under Sub NpcAttackPlayer? Link to comment Share on other sites More sharing options...
Stein Posted July 4, 2012 Share Posted July 4, 2012 I would assume so, because it appears to have something to do with performing an action with an NPC. (It's a little hard to judge not seeing all the code :P) Link to comment Share on other sites More sharing options...
jcsnider Posted July 4, 2012 Share Posted July 4, 2012 You may wanna try scrapping what you have and re-doing the tutorial from scratch, pay close attention to where the code is supposed to go. (Just my 2 cents.) Link to comment Share on other sites More sharing options...
Rydo Posted July 4, 2012 Author Share Posted July 4, 2012 Yeah, good thing I made a copy before I did anything :D. but i dont think I will be able to do it easily since I'm using ED and some variables are different. Link to comment Share on other sites More sharing options...
jcsnider Posted July 4, 2012 Share Posted July 4, 2012 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 More sharing options...
Rydo Posted July 4, 2012 Author Share Posted July 4, 2012 Haha, Thanks. And yeah I always make backups. I guess I'm going to do the housing system first, and the friends list could be included in a small update later on. 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