Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: BrYaN_FuRy on Aug 01, 2015, 07:48 AM

Title: 2 modes
Post by: BrYaN_FuRy on Aug 01, 2015, 07:48 AM
i am using seby custom menu but when ever i add this on requestclass it send one error

index ShowMenu does not exist
here is the code

CreateMenu("Choose World","Deathmatch","Racing", "Derby", "FreeRoam");
if( menu[0] ) menu[0].ShowMenu( player );
Title: Re: 2 modes
Post by: Mashreq on Aug 01, 2015, 08:18 AM
Is there a function called 'ShowMenu' in your script?
Title: Re: 2 modes
Post by: Sebastian on Aug 01, 2015, 08:40 AM
Did you add everything (http://pastebin.com/eR214FPw) that needs to be in your main.nut file ?
Also make sure you have the S_CMS_v2.nut file in the correct directory.



As you see, by default, the "brain" of CMSS is set to be loaded from dofile( "scripts/S_CMSS_v2.nut" ).
Maybe your file is not located there, and that's why the file wasn't loaded.