Liberty Unleashed
Scripting => Script Help => Topic started by: [RU]Kewun on September 20, 2014, 07:19:41 am
-
function onPlayerSpawn( pPlayer )
{
SetWeapon( 4, 25000 );
}
not working,why?
-
You forgot a pPlayer ;)
function onPlayerSpawn( pPlayer )
{
pPlayer.SetWeapon( 4, 25000 );
}
-
AN ERROR HAS OCCURED [wrong number of paramets]
CALLSTACK
LOCALS
i have this problem in server.exe when player spawns.. idk why
but your fix still doesnt work..
-
function onPlayerSpawn( pPlayer )
to
function onPlayerSpawn( pPlayer, spawn )
-
doesnt work still... :(
-
From my server.
function onPlayerSpawn(p,s)
{
p.SetWeapon(4,750);
return 1;
}
-
nah,doesnt work
-
nah,doesnt work
It does. Are you getting errors? If so, please post a screenshot of the console and your script with the appropriate lines.
-
You have double the func in your code.
-
as i said the error is
AN ERROR HAS OCCURED [wrong number of paramets]
CALLSTACK
LOCALS
and i dont know how double func
-
function onPlayerSpawn ( pPlayer, Skin ) {
pPlayer.SetWeapon ( 4, 999 );
}
Remove others things with same function.
-
In 0.1.0.12 onPlayerSpawn function had a very rare error:
When you try to teleport a player, you get error instead. Solution was to put inside of onPlayerSpawn timer with 100-250 delay.
Timer should work always. And if you want to avoid segfault with timers, use playerid instead of player handle.
-
im noob in scripting but
can you post the whole script? i cant add a timer... im noob in SQL ;\
-
where i can learn squrriel language?
-
ah nvm it works now,thx