What's the problem exactly? Explain more in detail
Quote from: oaktree501 on August 15, 2014, 04:50:20 amcan someone help me I can get the script in but I cant get it to run on my server someone please help.*Huge Bump*For all the ones who have problems with this script (and with every other old script that calls server functions from the client) remember that since 0.15 version for security reasons you must register server functions before calling them from client scripts, else they won't work.More info here: http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Scripts/RegisterRemoteFuncTo "fix" this script add the following in your server scripts:Code: [Select]RegisterRemoteFunc("SpawnRamp");RegisterRemoteFunc("VehicleBoost");
can someone help me I can get the script in but I cant get it to run on my server someone please help.
RegisterRemoteFunc("SpawnRamp");RegisterRemoteFunc("VehicleBoost");
/* Client script */pPlayer <- FindLocalPlayer();function onScriptLoad(){ print("Bind key added 'i'") BindKey( 'I', BINDTYPE_DOWN, "ClientFunction" );}function ClientFunction(){ /* Lets make a call to our server function */ // located inside of our script folder CallServerFunc( "Server/Server.nut", "ServerFunction", pPlayer );}
/* Server script */function onScriptLoad(){ // Lets register our client function RegisterRemoteFunc("ServerFunction");}function ServerFunction( player ){ MessagePlayer("Thank you for registering me", player);}
my Email
[email protected]