Help please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help please (
/showthread.php?tid=200391)
Help please -
Addrenal1n - 18.12.2010
I got a problem. I m using GTA:RP and I mapped interiors and changed system to /enter
When I enter mapped interiors it needs to reload to show objects
So I put toggleplayercontrolable 0 and timer on it like this after which you should get unfrozen
Код:
public entertimer()
{
new sendername;
TogglePlayerControllable(sendername, 1);
SetTimer("entertimer1", 1000, 0);
}
public entertimer1()
{
new sendername;
TogglePlayerControllable(sendername, 1);
}
You are getting unfreezed 2 times but some people are still stucking can anyone help?
Re: Help please -
Berky - 18.12.2010
The objects are there but you dont see them, it has no sence of doing this, does it?
Also, sendername has nothing to do with the player, change it to 'playerid'.
Re: Help please -
Rachael - 18.12.2010
The way you have scripted this, sendername will always be zero
pawn Код:
forward entertimer(playerid);
forward entertimer1(playerid);
public entertimer(playerid)
{
TogglePlayerControllable(playerid, 1);
SetTimerEx("entertimer1", 1000, 0,"d",playerid);
return 1;
}
public entertimer1(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}
try this instead
Re: Help please -
Addrenal1n - 18.12.2010
Quote:
Originally Posted by Rachael
The way you have scripted this, sendername will always be zero
pawn Код:
forward entertimer(playerid); forward entertimer1(playerid);
public entertimer(playerid) { TogglePlayerControllable(playerid, 1); SetTimerEx("entertimer1", 1000, 0,"d",playerid); return 1; } public entertimer1(playerid) { TogglePlayerControllable(playerid, 1); return 1; }
try this instead
|
Didn't work. I get forzen my friend doesn't
And what does "d" mean?
Re: Help please -
Rachael - 18.12.2010
I missed an error, TogglePlayerControllable(playerid, 0) freezes the player, 1 to unfreeze
Re: Help please -
Addrenal1n - 18.12.2010
Quote:
Originally Posted by Rachael
I missed an error, TogglePlayerControllable(playerid, 0) freezes the player, 1 to unfreeze
|
you got 1 there
Re: Help please -
Addrenal1n - 18.12.2010
Can anyone help??
Re: Help please -
toXioneer - 18.12.2010
I got same problem too can someone help us
)))))