Vice City: Multiplayer

Server Development => Scripting and Server Management => Client Scripting => Topic started by: Rardodus Bruise on Jul 07, 2019, 12:21 PM

Title: [Remake] Anik's Developer Panel
Post by: Rardodus Bruise on Jul 07, 2019, 12:21 PM



I decided to remake Anik's Developer Panel! I started working on the script and fixed something that a beginner can't (Due to Lack of Knowledge), It was this :
case "SetShowNametags":
if ( string2 == "true" ) SetWallglitch( true );
else SetWallglitch( false );
MessagePlayer( "Status : "+string2, player );
break;
case "SetShowOnRadar":
if ( string2 == "true" ) SetWallglitch( true );
else SetWallglitch( false );
MessagePlayer( "Status : "+string2, player );
break;
case "SetStuntBike":
if ( string2 == "true" ) SetWallglitch( true );
else SetWallglitch( false );
MessagePlayer( "Status : "+string2, player );
break;
case "SetShowOnlyTeamMarkers":
if ( string2 == "true" ) SetWallglitch( true );
else SetWallglitch( false );
MessagePlayer( "Status : "+string2, player );
break;
case "SetTaxiBoostJump":
if ( string2 == "true" ) SetWallglitch( true );
else SetWallglitch( false );
MessagePlayer( "Status : "+string2, player );
break;
case "SetWallglitch":
if ( string2 == "true" ) SetWallglitch( true );
else SetWallglitch( false );
MessagePlayer( "Status : "+string2, player );
break;

Minor View :

if ( string2 == "true" ) SetWallglitch( true );
else SetWallglitch( false );

SetWallglitch in more then 5 cases!





There are many changes in these 2 Developer Panel's, Some of them are listed below :






Overlay



True/False Statement



Textbox





(http://files.thijn.ovh/download/0329e26489ff11939bebc38af94bcadd/Developer%20Panel.rar)

Mega (https://mega.nz/#!f7wGmCLI!j8g13pwJLY_FyWnKXnfMJUeJacEF-lOuhIqQLDKoP1s)

Mediafire (http://www.mediafire.com/file/ddbep6vrzzojr85/Developer_Panel.rar/file)


Title: Re: [Remake] Anik's Developer Panel
Post by: Anik on Jul 07, 2019, 05:47 PM
What kind of bugs it had?
Title: Re: [Remake] Anik's Developer Panel
Post by: Sebastian on Jul 07, 2019, 10:03 PM
Quote from: Anik on Jul 07, 2019, 05:47 PMWhat kind of bugs it had?

He explained the bug, in the top of the post.
Seems like you copy-pasted the case "SetWallGlitch" many times, then just changed the string name without changing functions too.
So you ended having SetWallGlitch( true / false ) even for cases like SetShowOnlyTeamMarkers, SetTaxiBoostJump and so on.
Title: Re: [Remake] Anik's Developer Panel
Post by: Rardodus Bruise on Jul 08, 2019, 03:04 AM
Quote from: Sebastian on Jul 07, 2019, 10:03 PM
Quote from: Anik on Jul 07, 2019, 05:47 PMWhat kind of bugs it had?

He explained the bug, in the top of the post.
Seems like you copy-pasted the case "SetWallGlitch" many times, then just changed the string name without changing functions too.
So you ended having SetWallGlitch( true / false ) even for cases like SetShowOnlyTeamMarkers, SetTaxiBoostJump and so on.
Yep! You have used SetWallGlitch in many of the cases maybe because you were up to other things.