Random Explosions?
#1

k its my first time to work with CreateExplosion and i attached it to a command , but the problem is , the places where should be exploded ,gets exploded without the command.anyone have any idea what's happening ??
Reply
#2

There we have a mystery to solve I personally can't help u without seeing the script..
Reply
#3

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 1 && response)
	{
	  switch(listitem)
	  {
	    case 0://usa
	    {
	    CreateExplosion(-233.97259521484, 2633.2021484375, 62.374027252197,13,1000.0); //
			CreateExplosion(-342.97686767578, 2645.517578125, 62.374027252197,13,1000.0); //
			CreateExplosion(-308.1311340332, 2741.7602539063, 62.374027252197,13,1000.0); //
			CreateExplosion(-173.44599914551, 2736.9846191406, 62.374027252197,13,1000.0); //
	    }
			case 1://german
	    {
	    CreateExplosion(-1459.9934082031, 2603.5158691406, 63.685111999512,13,1000.0); //
			CreateExplosion(-1460.349609375, 2666.318359375, 63.685111999512,13,1000.0); //
			CreateExplosion(-1417.2110595703, 2666.5600585938, 63.685111999512,13,1000.0); //
			CreateExplosion(-1477.8121337891, 2555.8120117188, 63.685111999512,13,1000.0); //
			}
			case 2://japan
	    {
	    CreateExplosion(-68.205322265625, 1202.595703125, 31.104057312012,13,1000.0); //
			CreateExplosion(7.6469922065735, 1203.6928710938, 31.104057312012,13,1000.0); //
			CreateExplosion(8.4740104675293, 1146.4287109375, 31.104057312012,13,1000.0); //
			CreateExplosion(-52.749965667725, 1145.5432128906, 31.104057312012,13,1000.0); //
			CreateExplosion(-52.136501312256, 1103.1577148438, 31.104057312012,13,1000.0); //
			CreateExplosion(-80.392822265625, 1102.7485351563, 31.104057312012,13,1000.0); //
			CreateExplosion(-123.14115905762, 1127.2521972656, 31.104057312012,13,1000.0); //
			CreateExplosion(-170.87112426758, 1170.5258789063, 31.104057312012,13,1000.0); //
			CreateExplosion(-130.69058227539, 1215.0708007813, 31.104057312012,13,1000.0); //
			}
			case 3://merc
	    {
	    CreateExplosion(-686.87591552734, 931.30694580078, 14.374816894531,13,1000.0); //
	CreateExplosion(-680.44287109375, 959.30560302734, 14.374816894531,13,1000.0); //
	CreateExplosion(-658.13269042969, 938.02575683594, 14.374816894531,13,1000.0); //
	CreateExplosion(-675.60485839844, 910.60693359375, 14.374816894531,13,1000.0); //
			}
			case 4://russ
	    {
	    CreateExplosion(-835.23388671875, 1550.8673095703, 29.692680358887,13,1000.0); //
	CreateExplosion(-787.06079101563, 1569.4808349609, 29.692680358887,13,1000.0); //
	CreateExplosion(-785.56701660156, 1515.6232910156, 29.692680358887,13,1000.0); //
	CreateExplosion(-826.73297119141, 1509.5181884766, 29.692680358887,13,1000.0); //
	CreateExplosion(-829.17639160156, 1597.6502685547, 29.692680358887,13,1000.0); //
	CreateExplosion(-866.84130859375, 1596.603515625, 29.692680358887,13,1000.0); //
	CreateExplosion(-864.77459716797, 1522.0950927734, 29.692680358887,13,1000.0); //
	CreateExplosion(-768.34216308594, 1556.1833496094, 29.692680358887,13,1000.0); //
	CreateExplosion(-782.17987060547, 1602.0943603516, 29.692680358887,13,1000.0); //
	CreateExplosion(-782.1796875, 1602.09375, 29.692680358887,13,1000.0); //
			}

  	}
	}
	return 1;
}
Reply
#4

When making explosions, I use SetTimer, maybe you could make a timer for it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)