Liberty Unleashed
Scripting => Script Help => Topic started by: sasha19323 on January 20, 2013, 10:31:40 am
-
Hi again :D
Here is Client-side script
local plr = FindLocalPlayer();
CallServerFunc( "Scripts/TC/Main.nut", "tdm1", plr, plr);And Server-side
function tdm1(plr)
{
PagerMessage( plr, "ALLO YOBA ETO TI?", 140, 1, 2 );
}
It's not work. I think problems is in tdm1 function, but idk how to make it work.
-
CallServerFunc( "Scripts/TC/Main.nut", "tdm1", plr, plr);
why 2x plr ?
use
CallServerFunc( "Scripts/TC/Main.nut", "tdm1", plr );
...
-
CallServerFunc( "Scripts/TC/Main.nut", "tdm1", plr, plr);
why 2x plr ?
use
CallServerFunc( "Scripts/TC/Main.nut", "tdm1", plr );
...
Doesn't work
http://liberty-unleashed.co.uk/LUWiki/Squirrel/Client/Functions/Scripts/CallServerFunc (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Client/Functions/Scripts/CallServerFunc)
look at arguments
-
I've looked at SpawnRamp script and saw this:
function SpawnRamp()
{
local veh = g_pLocalPlayer.Vehicle;
if ( veh )
{
local driver = veh.Driver;
if ( driver && driver.ID == g_pLocalPlayer.ID )
{
CallServerFunc( "ramps/ramp.nut", "SpawnRamp", g_pLocalPlayer.ID, false );
}
}
}
Why there is g_pLocalPlayer.ID?
-
Thx all, i've found problem