21.06.2014, 04:35
Quote:
Try using foreach that looks confusing, give it a try and let me know.
|
I try this code.
pawn Код:
foreach(Player, i)
{
if(IsCopDragging[playerid] != INVALID_PLAYER_ID)
{
PlayerDraggedBy[IsCopDragging[playerid]] = INVALID_PLAYER_ID;
PlayerDragged[IsCopDragging[i]] = 0;
KillTimer(draggedtimer[playerid]);
IsCopDragging[i] = INVALID_PLAYER_ID;
PlayerDraggedBy[i] = INVALID_PLAYER_ID;
PlayerDragged[i] = 0;
}
}