A little help here.
#1

Well, there is a small problem.
What I'm trying to do is make a command so when you type /plant it will save that position you are in so later when you type /explode it will create a explosion at that position you saved when you type /plant.

Код:
if (strcmp("/Plant", cmdtext, true, 10) == 0)
	{
    GetPlayerPos(playerid,bombpos); // Here I'm trying to save the bomb pos for the explode part.
	  return 1;
	}
Код:
if (strcmp("/explode", cmdtext, true, 10) == 0)
	{
    CreateExplosion(bombpos, 12, 10.0); // This is suppose to make a explosion at the area bomb pos which was "suppose" to be saved earlier. 

    
	  return 1;
   }
Reply


Messages In This Thread
A little help here. - by Sal_Kings - 24.01.2010, 09:22
Re: A little help here. - by Striker_Moe - 24.01.2010, 09:29
Re: A little help here. - by Sal_Kings - 24.01.2010, 09:44
Re: A little help here. - by Striker_Moe - 24.01.2010, 09:47
Re: A little help here. - by Sal_Kings - 24.01.2010, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)