Help please
#1

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?
Reply
#2

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'.
Reply
#3

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
Reply
#4

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?
Reply
#5

I missed an error, TogglePlayerControllable(playerid, 0) freezes the player, 1 to unfreeze
Reply
#6

Quote:
Originally Posted by Rachael
Посмотреть сообщение
I missed an error, TogglePlayerControllable(playerid, 0) freezes the player, 1 to unfreeze
you got 1 there
Reply
#7

Can anyone help??
Reply
#8

I got same problem too can someone help us )))))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)