Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: ForOver on Dec 11, 2017, 08:27 PM

Title: can i add this function? for dofile
Post by: ForOver on Dec 11, 2017, 08:27 PM
function Script::ScriptLoad() is the function exist?
Title: Re: can i add this function? for dofile
Post by: Mohamed Boubekri on Dec 11, 2017, 10:05 PM
Forover Malek Asahbi ?....Ana Mohamed649.
Chof Dofile Kadirha Bach T3ayet Lchi Dossier Lmohim Hadi Nfahamlak.
Tba3 M3aya:-
function onScriptLoad()
{
dofile( "test.nut" );
}
Daba howa Hadi Y3eyet Lhad L Function.....Hadik Test Te9der Tbedelha Lsmiya Li3andek.
Lmohim chof Daba
Dir .nut Jdid W Samih test w Dir Fih Chi Command Tema Dkhol L Server w Hadi Tekhdem
Wach Fhamt :P
Title: Re: can i add this function? for dofile
Post by: KingOfVC on Dec 12, 2017, 01:30 AM
Script::ScriptLoad() is client side Event.
Title: Re: can i add this function? for dofile
Post by: umar4911 on Dec 12, 2017, 02:11 AM
Quote from: ForOver on Dec 11, 2017, 08:27 PMfunction Script::ScriptLoad() is the function exist?
This function exists in client side script which can be found in store/scripts/main.nut.

If you want to add it in server side then the scripts/main.nut and function OnScriptLoad() ;
Title: Re: can i add this function? for dofile
Post by: ForOver on Dec 12, 2017, 07:23 PM
Quote from: Mohamed on Dec 11, 2017, 10:05 PMForover Malek Asahbi ?....Ana Mohamed649.
Chof Dofile Kadirha Bach T3ayet Lchi Dossier Lmohim Hadi Nfahamlak.
Tba3 M3aya:-
function onScriptLoad()
{
dofile( "test.nut" );
}
Daba howa Hadi Y3eyet Lhad L Function.....Hadik Test Te9der Tbedelha Lsmiya Li3andek.
Lmohim chof Daba
Dir .nut Jdid W Samih test w Dir Fih Chi Command Tema Dkhol L Server w Hadi Tekhdem
Wach Fhamt :P

do you kidding me this code not working to dofile
Script::ScriptLoad() is working, solved and locked