help with command
#9

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
But what exactly isn't working and could you post the "TimeBomb" function?
eh dude this part of code is not working

Код:
else if(!strcmp(Mine, "TMine", true))
	{
		new string[256],sec;
	    if(sscanf(params, "i", sec))
		return SendClientMessage(playerid, COLOR_RED, "USAGE: /placemine [Tmine] [Seconds]");
		TimeBombPlaced[playerid] = 1;
		GetPlayerPos(playerid,MineX,MineY,MineZ);
		TimeBombObject = CreateObject(1252,MineX,MineY,MineZ-1,0.0, 0.0, 96.0);
		MinePos[playerid][0] = MineX;
		MinePos[playerid][1] = MineY;
		MinePos[playerid][2] = MineZ;
		TimeBombLabel = Create3DTextLabel("MINE HERE",COLOR_INDIANRED, MineX, MineY, MineZ, 20.0, 0, 0);
		format(string,sizeof(string),"You have set a time bomb of %i seconds.",sec);
		SendClientMessage(playerid,COLOR_PURPLE,string);
		TimeBombUpdate[playerid] = SetTimerEx("TimeBomb", sec*1000, false, "i", playerid);
	}
Reply


Messages In This Thread
help with command - by Nabster - 20.03.2015, 15:09
Respuesta: help with command - by alexus - 20.03.2015, 15:26
Re: help with command - by fuckingcruse - 20.03.2015, 15:32
Re: Respuesta: help with command - by Nabster - 20.03.2015, 15:54
Re: help with command - by fuckingcruse - 20.03.2015, 17:04
Re: help with command - by SickAttack - 20.03.2015, 17:10
Re: help with command - by Nabster - 21.03.2015, 05:48
Re: help with command - by SickAttack - 21.03.2015, 06:23
Re: help with command - by Nabster - 21.03.2015, 07:13
Re: help with command - by mirou123 - 21.03.2015, 10:19

Forum Jump:


Users browsing this thread: 1 Guest(s)