Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: :P on Sep 19, 2015, 05:46 AM

Title: not picking
Post by: :P on Sep 19, 2015, 05:46 AM
suddenly admin.nut leave working  which cmds in admin.nut when i type that cmds says unknow cmds i also add admin.nut in main.nut iadd do file   but not works why 
Title: Re: not picking
Post by: FinchDon on Sep 19, 2015, 06:01 AM
:/ why it don't work? do you load admin.nut by dofile( "admin.nut" );?
Title: Re: not picking
Post by: MacTavish on Sep 19, 2015, 06:06 AM
Probably you messed something wrong with admin.nut file
Title: Re: not picking
Post by: :P on Sep 19, 2015, 06:13 AM
dofile( "scripts/Admin.nut" );
Title: Re: not picking
Post by: Xmair on Sep 19, 2015, 06:15 AM
Do you use onPlayerCommand event two times?
Title: Re: not picking
Post by: KAKAN on Sep 19, 2015, 06:17 AM
Show us the 1st line of your admin.nut
which is something like
function ..
Title: Re: not picking
Post by: :P on Sep 19, 2015, 06:19 AM
function AdminCmds( player, command, text )
Title: Re: not picking
Post by: FinchDon on Sep 19, 2015, 06:26 AM
AdminCmds ADM Why not you use commands of admin onPlayerCommand?
Title: Re: not picking
Post by: :P on Sep 19, 2015, 06:31 AM
cause i want to keep admin cmds  separate and user cmds separate
Title: Re: not picking
Post by: FinchDon on Sep 19, 2015, 06:35 AM
You are not friendly with admincmds you done some mistake in Your Script Find It
Title: Re: not picking
Post by: KAKAN on Sep 19, 2015, 06:37 AM
Okay here is a easy trick:-

Open server.cfg file
find sqgamemode in it
change Main.nut to Admin.nut
then it'll tell you the error
Point it and fix it, if u can't post it
Title: Re: not picking
Post by: :P on Sep 19, 2015, 06:43 AM
try to catch error came
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi61.tinypic.com%2Fegqu85.png&hash=fa8b8a5523960143e01564397016ae413f4309f4)
Title: Re: not picking
Post by: KAKAN on Sep 19, 2015, 06:55 AM
Will u show us the line?
Title: Re: not picking
Post by: :P on Sep 19, 2015, 07:00 AM
echo = 301 = local
echo = 276 = local BotID = BotNick.find( FBS_DUAL() );
main = 203 =  EchoMessage( "** [" + player.ID + "] " + player.Name + " has left the server." );
Title: Re: not picking
Post by: KAKAN on Sep 19, 2015, 07:20 AM
Restart your server and try again :P
Title: Re: not picking
Post by: :P on Sep 19, 2015, 07:24 AM
much times i try and i solve null prob of admin.nut but the main  prob is that
Title: Re: not picking
Post by: :P on Sep 19, 2015, 07:36 AM
Thanks For Giving Reply But I Solve My Prob