Liberty Unleashed
Scripting => Script Help => Topic started by: mimomohamed on August 12, 2012, 10:01:40 pm
-
function onPlayerEnterSphere( player, Sph )
{
Sph.Remove();
if ( player.Vehicle )
{
CallServerFunc( "one/one1.nut", "one2", FindLocalPlayer() );
}
return 1;
}
it says
(http://www.mlfnt.com/lives6/13448054701.png)
the 42 line is CallServerFunc( "one/one1.nut", "one2", FindLocalPlayer() );
-
You're running an client script as server script.
Change your script.xml file so it says client="1" behind the file.
-
If I have understood you well ;
I can't make it client="1"
because i need it
function onPlayerEnterSphere( plr, sphere )
so i have made a different that i made
CallClientFunc( plr, ""one/one1.nut", "one2" );
but now no any wrong appear in the server.exe when i activate this function and no thing happen so help me please why not working ???????
-
Please help me it doesn't work why why why why ?
-
it doesn't work
Because, it depends on what you want to get (as a result).
-
i have called the right function and can u explain more !!
-
You can do the thing you want in a client script as there is a onClientEnterSphere (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Client/Events/Sphere/onClientEnterSphere) event.