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

Solved Multiple errors in scripting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 06-28-2021 , 21:33   Multiple errors in scripting
Reply With Quote #1

someone help me please i'm having several errors in scripting, I'm trying to create a rainbow dynamic light, but it has a lot of bugs and I can't fix them, I'm having a crash in the game and the dynamic light doesn't show.

Errors


Scripting

Last edited by King_OXO; 07-02-2021 at 15:50.
King_OXO is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-28-2021 , 22:42   Re: Multiple errors in scripting
Reply With Quote #2

Well, try like this.
But you should go for a timer instead of prethink in the final version.
Also the color may be per client and not global (e.g. iColor[MAXPLAYERS+1][3])
Btw the color from prethink doesn't have the alpha (4th parameter in the light parameter), I fixed it at 255

Spoiler
__________________

Last edited by Marttt; 06-28-2021 at 22:42.
Marttt is offline
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 06-29-2021 , 12:35   Re: Multiple errors in scripting
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
Well, try like this.
But you should go for a timer instead of prethink in the final version.
Also the color may be per client and not global (e.g. iColor[MAXPLAYERS+1][3])
Btw the color from prethink doesn't have the alpha (4th parameter in the light parameter), I fixed it at 255

Spoiler
Thank you, Marttt
King_OXO is offline
braslevall
Junior Member
Join Date: Apr 2021
Old 07-27-2021 , 17:21   Re: Multiple errors in scripting
Reply With Quote #4

haven't setup the type variable of i simply add this to your for loop instead of what you have for










192.168.100.1 192.168.1.1

Last edited by braslevall; 07-28-2021 at 07:03.
braslevall is offline
Reply



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 10:45.


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