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

[L4D2] Vote Manager 3


Post New Thread Reply   
 
Thread Tools Display Modes
jking
AlliedModders Donor
Join Date: Jan 2012
Old 07-19-2016 , 08:45   Re: [L4D2] Vote Manager 3
Reply With Quote #171

Quote:
Originally Posted by Ludastar View Post
use 1.6/1.7 compiler to compile the plugin, 1.8 wont work
Greets m8, I see from another thread of mine you've responded in kind but if you will, help me to understand why this is, why would one want to compile in an older compiler to run in newer SM? Thanks for both responses btw.

Edit: Fails also under 1.7, bug with 1.64 it compiles error free:

Code:
//// l4d2_vote_manager3.sp
// Header size:           4060 bytes
// Code size:            18832 bytes
// Data size:             6104 bytes
// Stack/heap size:      16384 bytes; Total requirements:   45380 bytes
//
// Compilation Time: 0.41 sec
// ----------------------------------------

Last edited by jking; 07-19-2016 at 09:09.
jking is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 07-19-2016 , 09:27   Re: [L4D2] Vote Manager 3
Reply With Quote #172

Quote:
Originally Posted by jking View Post
Greets m8, I see from another thread of mine you've responded in kind but if you will, help me to understand why this is, why would one want to compile in an older compiler to run in newer SM? Thanks for both responses btw.

Edit: Fails also under 1.7, bug with 1.64 it compiles error free:

Code:
//// l4d2_vote_manager3.sp
// Header size:           4060 bytes
// Code size:            18832 bytes
// Data size:             6104 bytes
// Stack/heap size:      16384 bytes; Total requirements:   45380 bytes
//
// Compilation Time: 0.41 sec
// ----------------------------------------
Please don't say that the latest SM can't compile source codes, with the exception of the really old ones, as I can confirm even some of the old ones can be compiled (my confirmation). Again, since FCVAR_PLUGIN is deprecated, just remove it from those lines and for the reserved keyword, check that specific line if it's missing a semicolon (minor mistakes when changing to new syntax).
cravenge is offline
jking
AlliedModders Donor
Join Date: Jan 2012
Old 07-19-2016 , 09:33   Re: [L4D2] Vote Manager 3
Reply With Quote #173

Quote:
Originally Posted by cravenge View Post
Please don't say that the latest SM can't compile source codes, with the exception of the really old ones, as I can confirm even some of the old ones can be compiled (my confirmation). Again, since FCVAR_PLUGIN is deprecated, just remove it from those lines and for the reserved keyword, check that specific line if it's missing a semicolon (minor mistakes when changing to new syntax).
I get that, and thanks for the response. I've been out of the loop for some time since perhaps SM 1.4 or 1.5 I forget. I'm putting together a private server and was looking for a good voting mod.
jking is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 07-19-2016 , 11:56   Re: [L4D2] Vote Manager 3
Reply With Quote #174

Quote:
Originally Posted by jking View Post
I get that, and thanks for the response. I've been out of the loop for some time since perhaps SM 1.4 or 1.5 I forget. I'm putting together a private server and was looking for a good voting mod.
I fixed the compatibility for SM 1.8, give it a try.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_vote_manager3.sp - 764 views - 24.8 KB)
__________________
Spirit_12 is offline
jking
AlliedModders Donor
Join Date: Jan 2012
Old 07-19-2016 , 12:40   Re: [L4D2] Vote Manager 3
Reply With Quote #175

Quote:
Originally Posted by Spirit_12 View Post
I fixed the compatibility for SM 1.8, give it a try.
Worked like a charm Spirit_12, thanks so much

Code:
//// l4d2_vote_manager3.sp
//
// Code size:            20352 bytes
// Data size:             7348 bytes
// Stack/heap size:      16384 bytes
// Total requirements:   44084 bytes
//
// Compilation Time: 0.41 sec
// ----------------------------------------
jking is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 12-15-2017 , 09:17   Re: [L4D2] Vote Manager 3
Reply With Quote #176

I would like to be able to create a custom vote and changing the amount of votes needed in percents ( for example, I wanna slay all survivors if the survivors unanimously vote to slay themselves for any reason )

Is such thing possible?

Last edited by eyal282; 12-15-2017 at 09:17.
eyal282 is offline
leaffan
Senior Member
Join Date: Jan 2013
Old 12-15-2017 , 16:31   Re: [L4D2] Vote Manager 3
Reply With Quote #177

Thank you I really needed a lot. It works very well. ;)

{I apologize for my bad English, you actually get English knowledge 0. Google Translate is right. }
leaffan is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-10-2018 , 13:43   Re: [L4D2] Vote Manager 3
Reply With Quote #178

Would it be possible to re-engineer the entire voting system to allow such VGUI votes but change percents needed to win ( 60% etc... )

Last edited by eyal282; 01-12-2018 at 10:18.
eyal282 is offline
raptor666
Junior Member
Join Date: Aug 2012
Old 02-20-2018 , 15:11   Re: [L4D2] Vote Manager 3
Reply With Quote #179

Sourcemod.net compiler:

Your plugin failed to compile! Read the errors below:

SourcePawn Compiler 1.7.1
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

/home/groups/sourcemod/upload_tmp/phpOE100g.sp(796) : error 157: 'char' is a reserved keyword
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(801) : error 029: invalid expression, assumed zero
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(802) : error 029: invalid expression, assumed zero
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(803) : error 029: invalid expression, assumed zero
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(803) : error 029: invalid expression, assumed zero
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(803) : warning 215: expression has no effect
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(803) : error 001: expected token: ";", but found "]"
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(803) : fatal error 189: too many error messages on one line

Compilation aborted.
7 Errors.


707389 successful compiles to date.
557847 failed compiles to date.

(
raptor666 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 02-20-2018 , 17:00   Re: [L4D2] Vote Manager 3
Reply With Quote #180

Quote:
Originally Posted by raptor666 View Post
Sourcemod.net compiler:

Your plugin failed to compile! Read the errors below:

SourcePawn Compiler 1.7.1
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

/home/groups/sourcemod/upload_tmp/phpOE100g.sp(796) : error 157: 'char' is a reserved keyword
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(801) : error 029: invalid expression, assumed zero
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(802) : error 029: invalid expression, assumed zero
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(803) : error 029: invalid expression, assumed zero
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(803) : error 029: invalid expression, assumed zero
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(803) : warning 215: expression has no effect
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(803) : error 001: expected token: ";", but found "]"
/home/groups/sourcemod/upload_tmp/phpOE100g.sp(803) : fatal error 189: too many error messages on one line

Compilation aborted.
7 Errors.


707389 successful compiles to date.
557847 failed compiles to date.

(
Try my revision.

Those errors were due to the author creating a string called "char" which is already used in the new syntax to replace "String" itself.

Old syntax:
PHP Code:
new String:sChar 
New syntax:
PHP Code:
char sChar 
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_vote_manager3.sp - 653 views - 24.8 KB)
__________________
Psyk0tik 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 21:55.


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