Freeze BUG
#1

I have one BIG PROBLEM, in my mode i have about 15 functions to freeze and evrything work without errors and when i am in game and example i have command /freeze and when i type /freeze i am freezed just few sec. and after that i get AUTO- unfreeze.....Please help me...Tnx
Reply
#2

bump
Reply
#3

Quote:
Originally Posted by [EFS
]
I have one BIG PROBLEM, in my mode i have about 15 functions to freeze and evrything work without errors and when i am in game and example i have command /freeze and when i type /freeze i am freezed just few sec. and after that i get AUTO- unfreeze.....Please help me...Tnx
paste code
Reply
#4

mode have over 4000 lines and i have 3 FS (LuxAdmin, Checkpoint Streamer and aHouse)
Reply
#5

wrong section
post it to bug reports
Reply
#6

Quote:
Originally Posted by Matej_SLO™
wrong section
post it to bug reports
And how do you know that this is a bug? It could be a problem in his script, which means that this board is correct.

@Topic starter: post your code for this part, not the whole script.
Reply
#7

Don't bump your topic, 7 minutes aren't 12 hours.
Paste the code of /freeze command here.
Reply
#8

Yes but what part.... I will post tutorial system because there is alot SetTimer... And alot freezing...

Code:
	if (strcmp("/tutorial", cmdtext, true, 10) == 0)
	{
  if(PlayerToPoint(5.0,playerid,2172.0872,1398.5747,11.0625))
  {
  new
  string[128],
  name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  format(string,sizeof string,"%s gleda tutorial.",name);
  SendClientMessageToAll(0x00FF0AFF,string);
  SetPlayerVirtualWorld(playerid,1);
  PlayerPlaySound(playerid, 1097, 0.0,0.0,0.0);
  SetTimerEx("Tutorial1", 20000, false, "d",playerid);
  TogglePlayerControllable(playerid,0);// FREEZE
  SetPlayerCameraPos(playerid, 2044.9576,1292.2585,70.4365);
  SetPlayerPos(playerid,2034.8428,1306.9465,64.0852);
  SetPlayerCameraLookAt(playerid, 2291.1248,1286.5923,70.4365);
  TextDrawShowForPlayer(playerid, tut1);
  	TextDrawShowForPlayer(playerid, tut2);
  	TextDrawShowForPlayer(playerid, tut3);
  	TextDrawShowForPlayer(playerid, tut4);
  	TextDrawShowForPlayer(playerid, tut5);
  	TextDrawShowForPlayer(playerid, tut6);
  }
Code:
public Tutorial1(playerid)
{
  SetTimerEx("Tutorial2", 20000, false, "d",playerid);
  SetPlayerCameraPos(playerid, 1646.0309,981.2659,21.9873);
  SetPlayerPos(playerid,1649.3347,997.0528,21.9873);
  SetPlayerCameraLookAt(playerid, 1633.2955,959.7066,10.7829);
  //SAKRI
  TextDrawHideForPlayer(playerid,tut1);
  TextDrawHideForPlayer(playerid,tut2);
  TextDrawHideForPlayer(playerid,tut3);
  TextDrawHideForPlayer(playerid,tut4);
  TextDrawHideForPlayer(playerid,tut5);
  TextDrawHideForPlayer(playerid,tut6);
  //POKAZI
  TextDrawShowForPlayer(playerid, tut7);
  TextDrawShowForPlayer(playerid, tut8);
  TextDrawShowForPlayer(playerid, tut9);
  TextDrawShowForPlayer(playerid, tut10);
  return 1;
}
public Tutorial2(playerid)
{
  SetTimerEx("Tutorial3", 20000, false, "d",playerid);
  SetPlayerCameraPos(playerid, 1973.3556,2028.0765,32.2933);
  SetPlayerPos(playerid,1975.9515,2022.0964,32.2933);
  SetPlayerCameraLookAt(playerid, 1983.7280,2052.9573,11.6792);
  //SAKRI
  TextDrawHideForPlayer(playerid,tut7);
  TextDrawHideForPlayer(playerid,tut8);
  TextDrawHideForPlayer(playerid,tut9);
  TextDrawHideForPlayer(playerid,tut10);
  //POKAZI
  TextDrawShowForPlayer(playerid, tut11);
  TextDrawShowForPlayer(playerid, tut12);
  TextDrawShowForPlayer(playerid, tut13);
  TextDrawShowForPlayer(playerid, tut14);
  return 1;
}
public Tutorial3(playerid)
{
  SetTimerEx("Tutorial4", 20000, false, "d",playerid);
  SetPlayerCameraPos(playerid, 2254.6885,2280.5259,17.3648);
  SetPlayerPos(playerid,2241.6746,2274.0959,17.3648);
  SetPlayerCameraLookAt(playerid, 2270.8931,2291.7949,10.8203);
  //SAKRI
  TextDrawHideForPlayer(playerid,tut11);
  TextDrawHideForPlayer(playerid,tut12);
  TextDrawHideForPlayer(playerid,tut13);
  TextDrawHideForPlayer(playerid,tut14);
  //POKAZI
  TextDrawShowForPlayer(playerid, tut15);
  TextDrawShowForPlayer(playerid, tut16);
  TextDrawShowForPlayer(playerid, tut17);
  return 1;
}
public Tutorial4(playerid)
{
  SetTimerEx("Tutorial5", 20000, false, "d",playerid);
  SetPlayerCameraPos(playerid, 2467.5718,923.9073,20.5623);
  SetPlayerPos(playerid,2455.9731,918.8719,19.5162);
  SetPlayerCameraLookAt(playerid, 2490.2483,918.2877,11.0234);
  //SAKRI
  TextDrawHideForPlayer(playerid,tut15);
  TextDrawHideForPlayer(playerid,tut16);
  TextDrawHideForPlayer(playerid,tut17);
  //POKAZI
  TextDrawShowForPlayer(playerid, tut18);
  TextDrawShowForPlayer(playerid, tut19);
  TextDrawShowForPlayer(playerid, tut20);
  return 1;
}
public Tutorial5(playerid)
{
  SetTimerEx("Tutorial6", 20000, false, "d",playerid);
  SetPlayerCameraPos(playerid, 1478.1583,1237.5098,18.2931);
  SetPlayerPos(playerid,1479.4418,1247.8354,19.0694);
  SetPlayerCameraLookAt(playerid, 1478.4773,1218.3374,18.2931);
  //SAKRI
  TextDrawHideForPlayer(playerid,tut18);
  TextDrawHideForPlayer(playerid,tut19);
  TextDrawHideForPlayer(playerid,tut20);
  //POKAZI
  TextDrawShowForPlayer(playerid, tut21);
  TextDrawShowForPlayer(playerid, tut22);
  TextDrawShowForPlayer(playerid, tut23);
  TextDrawShowForPlayer(playerid, tut24);
  return 1;
}
public Tutorial6(playerid)
{
  SetTimerEx("Tutorial7", 20000, false, "d",playerid);
  SetPlayerCameraPos(playerid, 1604.3822,1826.6711,10.8203);
  SetPlayerPos(playerid,1593.9891,1850.6124,10.8203);
  SetPlayerCameraLookAt(playerid, 1609.7631,1817.4272,10.8203);
  //SAKRI
  TextDrawHideForPlayer(playerid,tut21);
  TextDrawHideForPlayer(playerid,tut22);
  TextDrawHideForPlayer(playerid,tut23);
  TextDrawHideForPlayer(playerid,tut24);
  //POKAZI
  TextDrawShowForPlayer(playerid, tut25);
  TextDrawShowForPlayer(playerid, tut26);
  return 1;
}
public Tutorial7(playerid)
{
  SetTimerEx("Tutorial8", 20000, false, "d",playerid);
  SetPlayerCameraPos(playerid, 2030.6681,1344.9725,10.8203);
  SetPlayerPos(playerid,2036.1324,1343.0616,10.8203);
  SetPlayerCameraLookAt(playerid, 2021.4875,1343.4631,10.8203);
  //SAKRI
  TextDrawHideForPlayer(playerid,tut25);
  TextDrawHideForPlayer(playerid,tut26);
  //POKAZI
  TextDrawShowForPlayer(playerid, tut27);
  TextDrawShowForPlayer(playerid, tut28);
  TextDrawShowForPlayer(playerid, tut29);
  TextDrawShowForPlayer(playerid, tut30);
  return 1;
}
public Tutorial8(playerid)
{
  SetTimerEx("TutorialKRAJ", 20000, false, "d",playerid);
  SetPlayerCameraPos(playerid, 2314.4495,1790.2744,10.8020);
  SetPlayerPos(playerid,2314.2217,1781.5485,10.8125);
  SetPlayerCameraLookAt(playerid, 2315.9053,1801.1681,10.8020);
  //SAKRI
  TextDrawHideForPlayer(playerid,tut27);
  TextDrawHideForPlayer(playerid,tut28);
  TextDrawHideForPlayer(playerid,tut29);
  TextDrawHideForPlayer(playerid,tut30);
  //POKAZI
  TextDrawShowForPlayer(playerid, tut31);
  TextDrawShowForPlayer(playerid, tut32);
  TextDrawShowForPlayer(playerid, tut33);
  return 1;
}
public TutorialKRAJ(playerid)
{
  new
  string[128],
  name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  format(string,sizeof string,"%s je zavrsio sa gledanjem tutoriala.",name);
  SendClientMessageToAll(0x00FF0AFF,string);
	SetPlayerVirtualWorld(playerid,0);
	TogglePlayerControllable(playerid,1);// UNFREEZE
  PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
  SetCameraBehindPlayer(playerid);
  SetPlayerPos(playerid,2168.6494,1406.7350,10.8203);
  ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Kraj tutorial","Pogledao si cijeli tutorial, vazno je reci da su u tutorialu\nsamo neke stvari sta vam ovaj server moze ponuditi\nako trebas jos pomoci, slobodno se javi online adminima\nili na forumu: www.Extreme-FunServer.tk","OK","Odustani");
  //SAKRI
  TextDrawHideForPlayer(playerid,tut31);
  TextDrawHideForPlayer(playerid,tut32);
  TextDrawHideForPlayer(playerid,tut33);
  return 1;
}
Reply
#9

Quote:
Originally Posted by [EFS
]
Yes but what part.... I will post tutorial system because there is alot SetTimer... And alot freezing...
Quote:
Originally Posted by [EFS
]
and when i type /freeze i am freezed just few sec. and after that i get AUTO- unfreeze.....Please help me...Tnx
Make sure that there isn't any timer which unfreezes you.
Reply
#10

Quote:
Originally Posted by [EFS
]
mode have over 4000 lines and i have 3 FS (LuxAdmin, Checkpoint Streamer and aHouse)
paste warnings
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)