Raised This Month: $52 Target: $400
 13% 

Advanced Rules Menu


Post New Thread Reply   
 
Thread Tools Display Modes
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 01-19-2017 , 14: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 14:56.
sneaK is offline
j1gg
Senior Member
Join Date: Dec 2015
Old 01-28-2017 , 17: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 , 21: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 , 12: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.
__________________
Accepting private work. Contact me if you're interested.
If you like my work, feel free to donate in appreciation with PayPal or CSGO Skins.

Total Donated: 10$

Last edited by eyal282; 01-28-2018 at 12:33.
eyal282 is offline
Allower
Senior Member
Join Date: Sep 2013
Location: SourceEngine
Old 02-02-2019 , 16: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 16:54.
Allower is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 02-13-2019 , 05: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
__________________
Accepting private work. Contact me if you're interested.
If you like my work, feel free to donate in appreciation with PayPal or CSGO Skins.

Total Donated: 10$
eyal282 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 23:54.


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