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
(https://cdn.discordapp.com/attachments/568387385923207179/597395072488833034/coollogo_com-19504701.png)



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!


(https://cdn.discordapp.com/attachments/568387385923207179/597395343415574549/coollogo_com-28691366.png)



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



(https://cdn.discordapp.com/attachments/568387385923207179/597395544968527882/coollogo_com-8443931.png)



Overlay

(https://cdn.discordapp.com/attachments/568387385923207179/597396289864335390/2019-06-24_11-35-41-0371.png)

True/False Statement

(https://cdn.discordapp.com/attachments/568387385923207179/597396536443535380/2019-06-24_11-35-51-0973.png)

Textbox

(https://cdn.discordapp.com/attachments/568387385923207179/597396551878311968/2019-06-24_11-36-19-0621.png)


(https://cdn.discordapp.com/attachments/568387385923207179/597397278172643339/coollogo_com-840035.png)

(http://files.thijn.ovh/img/0329e26489ff11939bebc38af94bcadd/Developer%20Panel.rar) (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.