Author Topic: fix'd  (Read 2463 times)

« Last Edit: October 03, 2012, 06:06:14 PM by Mold »

« Last Edit: October 03, 2012, 06:00:21 PM by Mold »

"It doesn't work" is the least descriptive term you could have possibly used.

« Last Edit: October 03, 2012, 06:00:53 PM by Mold »

Is there a console error when you do it?

« Last Edit: October 03, 2012, 06:01:22 PM by Mold »

Code: [Select]
if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
if(!$RTB::RTBR_ServerControl_Hook)
exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");

RTB_registerPref("Start Votes Restriciton","Music Voting","$MusicVoting::StartRestriction","list Everyone 0 Admin 1 SuperAdmin 2 Host 3","Server_MusicVoting",0,0,0);
RTB_registerPref("End Votes Restriciton","Music Voting","$MusicVoting::EndRestriction","list Admin 0 SuperAdmin 1 Host 2","Server_MusicVoting",0,0,0);
RTB_registerPref("Set Vote Brick Restriciton","Music Voting","$MusicVoting::SetVoteBrickRestriction","list Admin 0 SuperAdmin 1 Host 2","Server_MusicVoting",0,0,0);
RTB_registerPref("Start Vote Command","Music Voting","$MusicVoting::StartVoteCommand","string 100","Server_MusicVoting","startMusicVote",0,1,"UpdateMusicVoteCommand");
RTB_registerPref("Voting Duration time","Music Voting","$MusicVoting::VotingDurationTime","int 10 60","Server_MusicVoting",25,0,0);
RTB_registerPref("Voting Timeout","Music Voting","$MusicVoting::VotingTimeout","int 10 300","Server_MusicVoting",60,0,0);
}
else
{
$MusicVoting::StartRestriction = 0;
$MusicVoting::EndRestriction = 0;
$MusicVoting::SetVoteBrickRestriction = 0;
$MusicVoting::StartVoteCommand = "startMusicVote";
$MusicVoting::VotingDurationTime = 25;
$MusicVoting::VotingTimeout = 60;
}
Does not set those varibles. Wtf.
Why the forget doesn't it work.

Code: [Select]
if(!$RTB::RTBR_ServerControlHook)
{
exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
}

You forgot to add that.

« Last Edit: October 03, 2012, 06:01:55 PM by Mold »

Line 3 & 4

If that doesn't work, try doing your prefs like this.

Code: [Select]
RTB_registerPref("name","area name","Pref","selection","filename",pref again,0,0);
At least, that's how I understand they work.

« Last Edit: October 03, 2012, 06:02:27 PM by Mold »

Code: [Select]
RTB_registerPref("Start Vote Restriction","Music Voting","$MusicVoting::StartRestriction","list Everyone 0 Admin 1 SuperAdmin 2 Host 3","Server_MusicVoting",$MusicVoting::StartRestriction,0,0);

So basically if all else fails, try doing your prefs like this, instead of this.

Code: [Select]
RTB_registerPref("Start Votes Restriciton","Music Voting","$MusicVoting::StartRestriction","list Everyone 0 Admin 1 SuperAdmin 2 Host 3","Server_MusicVoting",0,0,0);

« Last Edit: October 03, 2012, 06:03:10 PM by Mold »

« Last Edit: October 03, 2012, 06:03:35 PM by Mold »

« Last Edit: October 03, 2012, 06:03:53 PM by Mold »

« Last Edit: October 03, 2012, 06:04:14 PM by Mold »