Raised This Month: $12 Target: $400
 3% 

[BUG] Changing Lights AMXX 1.8.3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 12-23-2017 , 23:53   [BUG] Changing Lights AMXX 1.8.3
Reply With Quote #1

Hi there, i think i found a bug while using AMXX 1.8.3 with SlenderMod by Kia

For some reason, when the map loads while using AMXX 1.8.3 the light doesn't change. It used to work with 1.8.1 and with 1.8.2

Version: AMX Mod X 1.8.3-dev+5123
Original SlenderMod By Kia: https://forums.alliedmods.net/showthread.php?t=217128

Original code
PHP Code:
public plugin_init()
{
    
// Plugin Stuff that doesn't matter now
    
static light_cvar[3]
    
get_pcvar_string(cvar_light,light_cvar,charsmax(light_cvar))
    
set_lights(light_cvar)

When i remove the light code and use a simple set_task to change the light it works again, so i don't really know what is happening.

I'm using AMXX 1.8.2 again as a temporary solution but i'll try on a newer version and i'll also try to use plugin_cfg() instead of plugin_init()

I don't really know if this is a bug, i'm just reporting because it was working well and when the host updated the AMXX version it messed up some plugins. I also tried on localhost with both new game/SteamCMD and the same thing happens

EDIT
Forgot to mention, sometimes it changes but only to the brightest one and then it keeps flashing (this reduces FPS)

Last edited by marcelowzd; 12-24-2017 at 00:06.
marcelowzd is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-24-2017 , 00:52   Re: [BUG] Changing Lights AMXX 1.8.3
Reply With Quote #2

This has been discussed before, update amxx to latest dev, it is a 15 year old bug which was fixed recently

https://forums.alliedmods.net/showthread.php?t=301839
https://forums.alliedmods.net/showthread.php?t=303390
__________________

Last edited by Depresie; 12-24-2017 at 00:55.
Depresie is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode