![]() |
LocalPlayerID function problems.. [FIXED] - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: LocalPlayerID function problems.. [FIXED] (/showthread.php?tid=1724) |
LocalPlayerID function problems.. [FIXED] - seraphelic - 02-05-2008 I added a function and edited packets for players on the same map.. it doesn't work properly but i dont know why. Please take a look and make some comments. The Clientside function: Code: Sub SetLocalPlayerID() Code: ' :::::::::::::::::::::::::: Code: Sub SendLeaveMap(ByVal Index As Long, ByVal oldMap As Long, MapNum) Code: ' Blit out players I get a range of problems.. Players aren't blted at all, players are blted still when I leave the map.. Please help. Re: LocalPlayerID function problems.. - Dragoons Master - 02-05-2008 Code: Packet = Packet & "UpdateLocalPlayers" & END_CHAR Code: Packet = "UpdateLocalPlayers" & END_CHAR Re: LocalPlayerID function problems.. - Dr. Spoon - 03-05-2008 don't you need a SEP_CHAR seperating your packet title and the END_CHAR Re: LocalPlayerID function problems.. - Dragoons Master - 03-05-2008 Not really. If you do that you'll have an empty parse(1). END_CHAR is only to say a packet is done, it is not interpreted. Then it will try to split the packet with SEP_CHAR and that will give you two pieces. The packet name and an empty string. In mirage that's done but it's really not needed at all. If you replace all "sep_char & end_char" with "end_char" it probably will make a fill bugs xD Well, sometimes we forget to check a fill things and that may cause a RTE9. Re: LocalPlayerID function problems.. - seraphelic - 06-05-2008 Dragoons Master Wrote:\ Wow I overthought this one. I fixed by seperating the update packets into SendLeaveMap and SendJoinMap.. Thanks for the help. |