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

Advanced Rules Menu


Post New Thread Reply   
 
Thread Tools Display Modes
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 01-19-2017 , 13:56   Re: Advanced Rules Menu
Reply With Quote #91

Quote:
Originally Posted by LagMyAss View Post
It shows me error when i try to compile it:
/home/groups/sourcemod/upload_tmp/phpplSicx.sp(7 : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpplSicx.sp(72) : error 180: function return type differs from prototype. expected 'void', but got 'int'
/home/groups/sourcemod/upload_tmp/phpplSicx.sp(115) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpplSicx.sp(126) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpplSicx.sp(130) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpplSicx.sp(164) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpplSicx.sp(21 : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpplSicx.sp(242) : warning 213: tag mismatch
Compiles just fine with SM 1.8 includes and compiler, even works on the forum compiler. Try using a fresh 1.8 compiler.
__________________

Last edited by sneaK; 01-19-2017 at 13:56.
sneaK is offline
j1gg
Senior Member
Join Date: Dec 2015
Old 01-28-2017 , 16:28   Re: Advanced Rules Menu
Reply With Quote #92

Quote:
Originally Posted by arne1288 View Post
Try "\n":

Code:
First\nsecond\nthird
=
Code:
First
second
third
Not working, still text is in same line.
__________________
j1gg is offline
LeeonaRd
Member
Join Date: Jan 2017
Old 01-20-2018 , 20:56   Re: Advanced Rules Menu
Reply With Quote #93

Quote:
Originally Posted by sneaK View Post
Compiles just fine with SM 1.8 includes and compiler, even works on the forum compiler. Try using a fresh 1.8 compiler.
Same error for me..

Code:
/home/groups/sourcemod/upload_tmp/phpqmUxgB.sp(78) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpqmUxgB.sp(72) : error 180: function return type differs from prototype. expected 'void', but got 'int'
/home/groups/sourcemod/upload_tmp/phpqmUxgB.sp(115) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpqmUxgB.sp(126) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpqmUxgB.sp(130) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpqmUxgB.sp(164) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpqmUxgB.sp(218) : warning 213: tag mismatch
/home/groups/sourcemod/upload_tmp/phpqmUxgB.sp(242) : warning 213: tag mismatch
LeeonaRd is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-28-2018 , 11:33   Re: Advanced Rules Menu
Reply With Quote #94

You can mention in the post if you would like that the plugin is functional in Left 4 Dead 2.

What's the maximum amount of characters in a menu's text?

Edit: Alright, 255.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 01-28-2018 at 11:33.
eyal282 is offline
Allower
Senior Member
Join Date: Sep 2013
Location: SourceEngine
Old 02-02-2019 , 15:47   Re: Advanced Rules Menu
Reply With Quote #95

Quote:
Originally Posted by j1gg View Post
How can I add description in new lines?
"1"
{
"name" "Rule1"
"description" "This is the first rule detailed descriptionThis is the first rule detailed descriptionThis is the first rule detailed descriptionThis is the first rule detailed descriptionThis is the first rule detailed descriptionThis is the first rule detailed description"
}
http://images.akamai.steamuserconten...1BA448FFAB6F4/
Just edit rules.cfg like this:
Code:
"Rules"
{
    "1"
    {
        "name" "Rule1"
        "description" "This
is
the
first
rule
detailed
description"        
    }
    "2"
    {
        "name" "Rule2"
        "description" "This is the second rule detailed description"        
    }    
    "3"
    {
        "name" "Rule3"
        "description" "This is the third rule detailed description"        
    }           
}
You can do same with name section:
Code:
"Rules"
{
    "1"
    {
        "name" "R
u
l
e
1"
        "description" "This
is
the
first
rule
detailed
description"        
    }
Any example:

Code:
"Rules"
{
    "1"
    {
        "name" "Welcome
to our csgo server!"
        "description" "
****
Dont spam
or Cheating

Or you have banned by any Admin"
****
    }
If this not helps, just try replace SPACES what placed before quotes and parentheses with TAB SPACES. You can do this in text editor like NotePad++, AkelPad, etc. Then reload plugin and try check new lines work again.
__________________

Last edited by Allower; 02-02-2019 at 15:54.
Allower is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 02-13-2019 , 04:10   Re: Advanced Rules Menu
Reply With Quote #96

I think it is safe to say my plugin superceded yours.

https://forums.alliedmods.net/showthread.php?t=314301
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
ocean6
Junior Member
Join Date: Mar 2019
Old 04-05-2020 , 22:24   Re: Advanced Rules Menu
Reply With Quote #97

Tried to compile the original plugin from the source code and got these errors....

Code:
// E:\CSGO Misc\Plugins\sourcemod-windows\addons\sourcemod\scripting\rules.sp(78) : error 088: cannot return a value from a void function
// E:\CSGO Misc\Plugins\sourcemod-windows\addons\sourcemod\scripting\rules.sp(72) : error 180: function return type differs from prototype. expected 'void', but got 'int'
Again, the code is unmodified.... I just wanted to make sure it would compile, and it doesn't.

Can anyone lend a hand or recommend an alternative plugin?

I need to change some minor things. Mainly just wording from "Server Rules" to my website.

EDIT: Reading the post above mine now.... Apparently eyal282 rolled out something to replace

Last edited by ocean6; 04-05-2020 at 22:35.
ocean6 is offline
zoon
Junior Member
Join Date: Jan 2023
Old 01-25-2023 , 20:35   Re: Advanced Rules Menu
Reply With Quote #98

I want the rules menu to appear after 25.0 of the start of the game, is it possible?
zoon is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-29-2023 , 17:17   Re: Advanced Rules Menu
Reply With Quote #99

Quote:
Originally Posted by zoon View Post
I want the rules menu to appear after 25.0 of the start of the game, is it possible?
https://forums.alliedmods.net/showthread.php?t=314301
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 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:56.


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