Strange bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Strange bug (
/showthread.php?tid=128015)
Strange bug -
Gyvo - 15.02.2010
I've got a godfather edit script running on 0.3...
I've realized other players cannot see other players armor or weapons and nor can they shoot each other. It's not a one-off bug, its always like this..
What can I do?
Re: Strange bug -
iron_war_lord - 16.02.2010
Hey man
From the rules (Yes, it is stickied)
Re: Strange bug -
Gyvo - 16.02.2010
From that I mean its using the same style of login system. I think it maybe a function that doesn't let you see others weapons or armor... some sort of function controlled draw distance...
Re: Strange bug -
iron_war_lord - 16.02.2010
Most likely your problem is because each player is in different VirtualWorlds. Try setting the player's VirtualWorld (SetPlayerVirtualWorld) when he/she spawns.
Re: Strange bug -
Gyvo - 16.02.2010
This isn't the problem because if they were in different virtual worlds then they will not be seeing the same vehicles nor would they be able to see other players.
In this astonishing case, players are able to see other players and environmental objects around them such as vehicles or objects however, they are unable to see other players states such as if they're shooting, holding a gun, have armor on etc..etc...
This problem does not involve virtual worlds or interior.
Re: Strange bug -
iron_war_lord - 16.02.2010
Quote:
other players cannot see other players armor or weapons and nor can they shoot each other.
|
Must have read that wrong. Sorry.
Anyways, it could be a syncing error lolz. Keep it mind that Godfather Scripts are HUGE and are easy to make mistakes with. Make sure you check your OnPlayerSpawn event properly...
Re: Strange bug -
Gyvo - 16.02.2010
The script is about 2,000 lines. I've reviewed it several times. I can't see where I've gone wrong.
Re: Strange bug -
iron_war_lord - 16.02.2010
Then it has to be a syncing problem, are you testing it with online or lan friends?
Re: Strange bug -
Gyvo - 16.02.2010
online
Re: Strange bug -
Gyvo - 16.02.2010
Anyone?
Allow me to explain in more detail.
On my screen, I see my player holding a gun. However on everyone elses screen, they don't see the gun. Its this for everyone. No one can see eachothers gun and the guns do no damage when shooting other people (not cause of lag).....