EasysAltisLife / Easys-Altis-Life

This is where we track bugs and announce new versions.
2 stars 0 forks source link

Stuck in Group #40

Closed Exhil closed 8 years ago

Exhil commented 9 years ago

I joined my friend's gang a while ago but now when I join another gang and relog it puts me back in that group. I tried syncing data after leaving and after joining the other group but nothing has helped.

imthatguyhere commented 9 years ago

Issue Summary

This issue occurs when a user leaves a gang and it doesn't get disbanded. If the original gang gets disbanded, this is not an issue.

Cause

The code pulls the first occurrence of the user's steamid (playerid) from the database and checks if the gang is still active. When a user leaves a gang they do not get removed from the list of members in the database. Due to this the first gang found is the one the user gets stuck in.

Solution

Until we get a fix for the code, post a topic here: Easy's Altis Life: Help Desk.

Make sure to include your playerid and the gang you are stuck in in the post.

EliteBanana commented 9 years ago

I THINK i have found a solution for this issue. As a gang leader, I would tel the person to leave the gang > sync data > join gang > sync data again. This would keep the player in the gang he was last in before leaving the server.

s1k-altisLife commented 9 years ago

I will do some testing on it. Let me know if that infact works. The problem actually is having the DELETE query be safe and not exploitable to wipe our entire DB if you're a real hacker and know what you're doing. I "could" fix it right now with a simple delete query, but we all know you cant trust people, lol. <3.

imthatguyhere commented 9 years ago

Should be improved in the next few patches.