Raised This Month: $32 Target: $400
 8% 

Compile Errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diggingwolf2605
Junior Member
Join Date: Apr 2020
Old 03-31-2021 , 08:03   Compile Errors
Reply With Quote #1

I am trying to edit this plugin: https://forums.alliedmods.net/showthread.php?p=1208693

When i try to re-compile, it has multiple errors on the same line. I'm not exactly sure what causes these errors.

fortspawner.sp(99 : warning 219: local variable "client" shadows a variable at a preceding level
fortspawner.sp(99 : warning 219: local variable "args" shadows a variable at a preceding level
fortspawner.sp(1005) : warning 219: local variable "index" shadows a variable at a preceding level
fortspawner.sp(1047) : warning 219: local variable "client" shadows a variable at a preceding level
fortspawner.sp(1047) : warning 219: local variable "args" shadows a variable at a preceding level
fortspawner.sp(1066) : warning 219: local variable "param" shadows a variable at a preceding level
fortspawner.sp(1100) : warning 219: local variable "index" shadows a variable at a preceding level
fortspawner.sp(1204) : warning 219: local variable "client" shadows a variable at a preceding level

fortspawner.sp(140 : error 021: symbol already defined: "RemoveEntity"
fortspawner.sp(1410) : error 010: invalid function or declaration
fortspawner.sp(1412) : error 010: invalid function or declaration
fortspawner.sp(1417) : error 010: invalid function or declaration
fortspawner.sp(1420) : error 010: invalid function or declaration
fortspawner.sp(1424) : error 010: invalid function or declaration
fortspawner.sp(1427) : error 021: symbol already defined: "GetCmdArg"
fortspawner.sp(1429) : error 054: unmatched closing brace ("}")
fortspawner.sp(1430) : error 010: invalid function or declaration
fortspawner.sp(1433) : error 054: unmatched closing brace ("}")
fortspawner.sp(1435) : error 010: invalid function or declaration
fortspawner.sp(1439) : error 021: symbol already defined: "ReplyToCommand"
fortspawner.sp(1440) : error 021: symbol already defined: "RemoveFromLimit"
Attached Files
File Type: sp Get Plugin or Get Source (fortspawner.sp - 39 views - 57.0 KB)
Diggingwolf2605 is offline
Cruze
Veteran Member
Join Date: May 2017
Old 04-01-2021 , 01:23   Re: Compile Errors
Reply With Quote #2

Can compile now
Attached Files
File Type: sp Get Plugin or Get Source (fortspawner.sp - 68 views - 56.8 KB)
__________________
Taking paid private requests! Contact me
Cruze is offline
Diggingwolf2605
Junior Member
Join Date: Apr 2020
Old 04-02-2021 , 07:24   Re: Compile Errors
Reply With Quote #3

Thank you. It compiles fine now, but it has an issue where props are spawning underneath the map and not on top of it. You have to noclip under the map in order to see them. I had this issue with another buildmenu plugin and i'm not sure why it's doing it. I'm currently using this plugin for L4D1.
Diggingwolf2605 is offline
Cruze
Veteran Member
Join Date: May 2017
Old 04-02-2021 , 08:36   Re: Compile Errors
Reply With Quote #4

Quote:
Originally Posted by Diggingwolf2605 View Post
Thank you. It compiles fine now, but it has an issue where props are spawning underneath the map and not on top of it. You have to noclip under the map in order to see them. I had this issue with another buildmenu plugin and i'm not sure why it's doing it. I'm currently using this plugin for L4D1.
I don't anything about L4D1 and its plugins sadly D:
__________________
Taking paid private requests! Contact me
Cruze is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-02-2021 , 09:13   Re: Compile Errors
Reply With Quote #5

You need to increase the Z index (vecPosition[2]) for some models cause their abs position may vary (I mean that not always the bottom of an entity is the 0,0,0 pos)
__________________

Last edited by Marttt; 04-02-2021 at 09:14.
Marttt 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 15:47.


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