Help with freeze
#1

Question:
Okay, so I have this code, and why does it freeze me whenever I type any id number??
Код:
case 0:
{
ShowPlayerDialog(playerid, 11,DIALOG_STYLE_INPUT,"Freeze","Type the player's id below:","Next","Cancel");
}

//--------------------------------------------

if(dialogid == 11)
{
if (response)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string, sizeof(string), "Type here the reason why, you, will freeze %s", name);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT,"Freeze",string,"Freeze","Cancel");
TogglePlayerControllable(Player[playerid],0);
return 1;
}
}
Problem:
To make it not freeze me O.O
________
Buddhism forum
Reply
#2

Make a new dialog with unfreeze?

Код:
TogglePlayerControllable(player[playerid],1);
Reply
#3

Quote:
Originally Posted by Naxix
Make a new dialog with unfreeze?

Код:
TogglePlayerControllable(player[playerid],1);
I already have unfreeze.
My problem is that it freezes me whenever I type any player id number.
________
Portable Vaporizer
Reply
#4

pawn Код:
new player1 = ReturnUser(tmp, playerid);
pawn Код:
new tmp = strtok(params,Index);
So, it will be
pawn Код:
TogglePlayerControllable(player1,0);
Reply
#5

or:

at top of dialog
Код:
new pid;
Код:
TogglePlayerControlable(pid,0);
Reply
#6

Quote:
Originally Posted by Naxix
or:

at top of dialog
Код:
new pid;
Код:
TogglePlayerControlable(pid,0);
OT: Dude, stop to spam the topic...
Reply
#7

pawn Код:
TogglePlayerControllable(strval(inputtext), 0);
Reply
#8

Quote:
Originally Posted by Naxix
or:

at top of dialog
Код:
new pid;
Код:
TogglePlayerControlable(pid,0);
Learn to script. Your code makes NO sense.
Reply
#9

Quote:
Originally Posted by [03
Garsino ]
Quote:
Originally Posted by Naxix
or:

at top of dialog
Код:
new pid;
Код:
TogglePlayerControlable(pid,0);
Learn to script. Your code makes NO sense.
Umm.. Maybe it makes no sence to you, but it works for me?
Reply
#10

Quote:
Originally Posted by Naxix
Quote:
Originally Posted by [03
Garsino ]
Quote:
Originally Posted by Naxix
or:

at top of dialog
Код:
new pid;
Код:
TogglePlayerControlable(pid,0);
Learn to script. Your code makes NO sense.
Umm.. Maybe it makes no sence to you, but it works for me?
Of course it works, because pid variable holds the value of 0 and you're probably the ID 0.

/facepalm
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)