How to fix dark skin issue on SAMP class selection in pawn? - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: General (https://forum.open.mp/forumdisplay.php?fid=19) --- Forum: Programming (https://forum.open.mp/forumdisplay.php?fid=56) --- Thread: How to fix dark skin issue on SAMP class selection in pawn? (/showthread.php?tid=1671) |
How to fix dark skin issue on SAMP class selection in pawn? - goldprince - 2021-02-14 Hello Everyone, ? ? ? ? ? ? ? ? ? ? ? ? ? ?I'm working on a SAMP server using pawn language, but I've started facing an issue since I started work on SAMP player skin selection class. The issue is when a player request's a class all skins becomes darker. Code: #include <a_samp> Screenshot Of The Issue: Screenshot Of The Expected Results: As you can see in the first screenshot the player skin is darker then normal. What I have tried:? I have tried rearranging the code, like calling SetPlayerCameraPos() before SetPlayerPos(). I have also tried using a timer to add a delay before setting player pos and camera pos. I have also tried using TogglePlayerSpectating()?method to make sure every things gets loaded with player's camera. But still same result. If you know any solution for this problem please share. Thank You, RE: How to fix dark skin issue on SAMP class selection in pawn? - destiezk - 2021-02-15 did you try to set it to another location? I'm not sure at all, but maybe SA-MP weather or time may cause this RE: How to fix dark skin issue on SAMP class selection in pawn? - goldprince - 2021-02-15 (2021-02-15, 10:30 AM)destiezk Wrote: did you try to set it to another location? I'm not sure at all, but maybe SA-MP weather or time may cause this Yes I tried, I copied camera pos, player pos, camera point pos,?player facing angle, weather and time from a popular server, and tried on my server but still all skins were showing black. Screenshot from the?server where I copied the coordinates from: Screenshot of my server where I tried coordinates: RE: How to fix dark skin issue on SAMP class selection in pawn? - ImOver - 2021-02-15 Should work fine as I tried it too, Try changing the weather/time and see if the problem still occurs or no? RE: How to fix dark skin issue on SAMP class selection in pawn? - goldprince - 2021-02-15 (2021-02-15, 06:38 PM)ImOver Wrote: Should work fine as I tried it too, Try changing the weather/time and see if the problem still occurs or no? BC you said, I gave it another try and still same results, I tried setting it?using code and also used time and weather commands to change it manually in class selection.?Do you think?is there?any problem in my code or I am missing something? or I did something wrong in "server.cfg"?? As you said you tried it and?it was working fine on your side, can you please share the working code you used on your side? Thank You, RE: How to fix dark skin issue on SAMP class selection in pawn? - destiezk - 2021-02-21 could you please try this one? Code: SetPlayerPos(playerid, -1211.7233, -98.9115, 40.3509); |