Hi guys, anyone can help me figure this out *Solved, wrong regex used *
local newMember = self.addMemberEntry:getInternalText():match**("^%s*(.-)%s*$")**
print(newMember)
sendSafehouseInvite(self.safehouse, self.player, newMember)
I passed down the username value on the newMember variable and for the second arg i passed the IsoPlayer but i'm getting below error when this is triggered. I navigated down to GameServer and the error was meant for UDPConnection
ERROR: General , 1765263277507> 571,228,873> GameServer.mainLoopDealWithNetData> Error with packet of type: SendSafehouseInvite for ARES
ERROR: General , 1765263277507> 571,228,873> java.lang.NullPointerException: Cannot invoke "zombie.characters.IsoPlayer.getOnlineID()" because "<local6>" is null
ERROR: General , 1765263277507> 571,228,873> at zombie.network.GameServer.receiveSendSafehouseInvite(GameServer.java:8559)
ERROR: General , 1765263277507> 571,228,873> at zombie.network.PacketTypes$PacketType.onServerPacket(PacketTypes.java:1022)
ERROR: General , 1765263277507> 571,228,873> at zombie.network.GameServer.mainLoopDealWithNetData(GameServer.java:1532)
ERROR: General , 1765263277507> 571,228,873> at zombie.network.GameServer.main(GameServer.java:800)