20.03.2015, 15:09
this command is not working idk why,help please..
Код:
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); }