errors!!
#5

now this

i have the script now like this:

Код:
{
	new Float:X;
	new Float:Y;
	new Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
	new mine = CreateObject(1213, X, Y, Z, 0, 0, 96);
	if (strcmp("/mine", cmdtext, true, 10) == 0)
	{
		CreateObject(mine, X, Y, Z, 0, 0, 96);
		return 1;
	}
	new Float:mineactiveX;
	new Float:mineactiveY;
	new Float:mineactiveZ;
	GetObjectPos(mine, mineactiveX, mineactiveY, mineactiveZ);
	new mineactive = CreateObject(mine, mineactiveX, mineactiveY, mineactiveZ, 0, 0, 96);
	if (strcmp("/mineactivate", cmdtext, true, 10) == 0)
	{
		CreateObject(mineactive, mineactiveX, mineactiveY, mineactiveZ, 0, 0, 96);
		  {
		  	if(IsPlayerInRangeOfPoint(playerid, 1.0, mineactiveX, mineactiveY, mineactiveZ))
		  	CreateExplosion(mineactiveX, mineactiveY, mineactiveZ, 4, 10.0);

		  }
		return 1;
	}
	return 0;
}
but when i do /mineactivate it explodes me!!

how to solve that??
Reply


Messages In This Thread
errors!! - by legodude - 02.02.2010, 11:59
Re: errors!! - by m0niSx - 02.02.2010, 12:12
Re: errors!! - by legodude - 02.02.2010, 12:20
Re: errors!! - by legodude - 02.02.2010, 12:21
Re: errors!! - by legodude - 02.02.2010, 12:30

Forum Jump:


Users browsing this thread: 1 Guest(s)